Extract the content of the file: swagger-ui-dist-3.24.0.tgz
Copy the content of the directory "package" in the folder: "mtitek-swagger-sample/src/main/webapp"
Open the file "src/main/webapp/index.html"
Change: url: "https://petstore.swagger.io/v2/swagger.json",
With: url: "http://localhost:8080/mtitek-swagger-sample-1.0.0-SNAPSHOT/swagger.json",
The POM file (pom.xml)
web.xml
MyResourceConfig.java
Swagger/REST service: MyEntitySwaggerAPI.java
Java entity: MyEntity.java
Build and test the swagger application
Apache Maven: mvn clean package
Apache Tomcat: deploy the war file "mtitek-swagger-sample-1.0.0-SNAPSHOT.war" in the folder "${TOMCAT_ROOT}/webapps/"