openapi-generator-original/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations
Christophe Moine ee4cb9ac22
[jaxrs-spec][quarkus] Feat: Add an option to use "org.jboss.resteasy.reactive.RestResponse" (#21877)
* replace Response by RestResponse

* fix rest response for Async

* update documentation

* Add option "returnJBossResponse"

* Add tests + fixes

* Polish

* Add dependency "io.quarkus.resteasy.reactive:resteasy-reactive" when returnJBossResponse=true

* fix JavaJAXRSSpecServerCodegenTest

* generate samples & docs
2025-09-14 17:11:06 +08:00
..

JAX-RS server with OpenAPI using Quarkus

Overview

This server was generated by the OpenAPI Generator project. By using an OpenAPI-Spec, you can easily generate a server stub.

This is an example of building a OpenAPI-enabled JAX-RS server. This example uses the JAX-RS framework and the Eclipse-MicroProfile-OpenAPI addition.

The pom file is configured to use Quarkus as application server.

To start the server in dev mode, run this maven command:

mvn compile quarkus:dev

You can then call your server endpoints under:

http://localhost:8080/

In dev-mode, you can open Swagger-UI at:

http://localhost:8080/swagger-ui/

Read more in the Quarkus OpenAPI guide.