Example of using Swagger for definition of REST API of JAX-RS based application.
To start this application use Maven command:
mvn jetty:run
Swagger documentation of REST API is available on http://localhost:8080/swagger/swagger.html
Swagger definition of REST API in JSON format is available on http://localhost:8080/api/swagger.json
This application is deployed to Heroku: https://swagger-jax-rs.herokuapp.com/