openapi-generator/samples/server/petstore/jaxrs-spec
2018-08-30 19:39:09 +08:00
..
.openapi-generator update petstore samples 2018-08-23 18:52:34 +08:00
src [JAXRS] use contextPath variable for @ApplicationPath in RestApplication (#850) 2018-08-22 09:15:08 +02:00
.openapi-generator-ignore Regenerate all jaxrs examples (#234) 2018-04-26 13:54:41 +08:00
pom.xml [jaxrs-spec*] samples should be tested. repair import and dependency. (#755) 2018-08-07 16:45:09 +08:00
README.md [Java][JAXRS] improve generated readme (#920) 2018-08-30 14:05:34 +08:00

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 an 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!