Home

Deploying Swagger UI in Apache Tomcat

Introduction
In this article, I am going to explain the deployment of Swagger UI in Apache Tomcat server. After deployment we can access the Swagger UI directly from server instead of opening html file to access Swagger UI.
Overview
Step 1: First we need to Download Apache Tomcat server and extract it.
Step 2: Download Swagger UI and extract it.
Step 3: From extracted files copy the dist folder into <Tomcat Server>/webapps and rename the dist folder to swagger-ui.
Step 4: Start the Apache server.
Step 5: Open http://localhost:8080/swagger-ui in browser.
By default it will load with petstore sample as swagger provided as default sample.
Conclusion
We have successfully deployed Swagger UI in Apache tomcat and able to access swagger ui from server. I am going to show how to deploy swagger editor in Apache tomcat server in my next article. 
Download
S. No
File Name
Size
Download
1
Deploying Swagger UI in Apache Tomcat.pdf
1.0 MB

Comments