openapi-generator/samples/server/petstore/jaxrs/jersey2/README.md

23 lines
775 B
Markdown
Raw Normal View History

# Swagger Jersey 2 generated server
2015-02-05 19:35:13 +00:00
## Overview
2015-10-20 17:29:25 +00:00
This server was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the
2016-01-05 07:02:18 +00:00
[OpenAPI-Spec](https://github.com/swagger-api/swagger-core/wiki) from a remote server, you can easily generate a server stub. This
2015-10-20 17:29:25 +00:00
is an example of building a swagger-enabled JAX-RS server.
2015-02-05 19:35:13 +00:00
2015-10-20 17:29:25 +00:00
This example uses the [JAX-RS](https://jax-rs-spec.java.net/) framework.
2015-10-26 10:00:15 +00:00
To run the server, please execute the following:
```
mvn clean package jetty:run
```
You can then view the swagger listing here:
```
http://localhost:8080/v2/swagger.json
```
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!