Simple Bootique app demonstrating the Bootique Swagger api documentation module.
- Java 1.8 or newer.
- Apache Maven.
git clone https://github.com/bootique-examples/bootique-swagger-demo.git
cd bootique-swagger-demo
mvn package
Enter the following to launch application with default url to swagger.json:
java -jar target/bootique-swagger-demo-1.0-SNAPSHOT.jar
Enter the following to launch app with custom url to swagger.json configured in yml file:
java -jar target/bootique-swagger-demo-1.0-SNAPSHOT.jar --config=classpath:customUrl.yml
After launching the app, go to
- http://localhost:9999/api Get hello page
- http://localhost:9999/swagger.json Documented by swagger application api as JSON
- http://localhost:9999/swagger.yaml Documented by swagger application api as YAML
- http://localhost:9999/swagger Swagger Web console
- http://localhost:9999/static Static resources