openapi-generator/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations
Aliaksei 809b3331a9
[4947][java]: adds support for validation of primitives in arrays (#17165)
* [4947][java]: adds support for validation of primitives in arrays

* [4947][java]: prevents generation '@Valid' for Object

* [4947][java]: test against different codegens and stick to primitive

* [4947][java]: code review

* [4947][java]: enhance getBeanValidation

* [4947][java]: adds email

* [4947][java]: removes unnecessary override

* [4947][java]: adds postProcessResponseWithProperty

* [4947][java]: adds missing import {{javaxPackage}}.validation.Valid

* [4947][java]: adds missing useBeanValidation

* [4947][java]: fix use rootJavaEEPackage for helidon
2023-12-11 20:55:38 +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.