mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-14 21:49:09 +00:00
* feat: add support for Swagger v3 annotations to jaxrs-spec * test added unittest for jaxrs-spec with swagger3Annotations * test added integrationtest for jaxrs-spec with swagger3Annotations * test added integrationtest for jaxrs-spec with swaggerV2Annotations * documentation update for new option useSwaggerV3Annotations in the jaxrs-spec.md * test added integrationtest for jaxrs-spec with swaggerV3Annotations icm use JakartaEE * update documentation by executing: ./bin/utils/export_docs_generators.sh * ran on wsl: ./bin/generate-samples.sh ./bin/configs/*.yaml
945 B
945 B
JAX-RS server with OpenAPI
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.
The JAX-RS implementation needs to be provided by the application server you are deploying on.
To run the server from the command line, you can use maven to provision and start a TomEE Server. Please execute the following:
mvn -Dtomee-embedded-plugin.http=80 package org.apache.tomee.maven:tomee-embedded-maven-plugin:7.0.5:run
You can then call your server endpoints under:
http://localhost:80/v2/
Note that if you have configured the host to be something other than localhost, the calls through
swagger-ui will be directed to that host and not localhost!