Skip to content

Swagger and Jetty example with Jersey and Guice

License

Notifications You must be signed in to change notification settings

mracsko/example-swagger-jetty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swagger Jetty Example

TBD

Build and Run

Example Application can be built and started with the following command: gradlew run

Do not forget to set JAVA_HOME environment variable to a JDK 1.8 path.

After the application is started, Swagger documentation and REST endpoints are available on the following url: http://localhost:8080/dummy/api/

Creating index.html

  • index.html is created by copying the html from swagger ui and modify all urls
    • In the example from dummy/api to dummy/swagger-ui this have been done by replacing ./ to ../swagger-ui/
    • Modify url to swagger.json in the script (SwaggerUIBundle)