Skip to content

Latest commit

 

History

History
33 lines (15 loc) · 795 Bytes

README.md

File metadata and controls

33 lines (15 loc) · 795 Bytes

Spring-Swagger-Impl

This repo is the example implementation for springfox-swagger2.

Pre-requistes

Setup Tomcat to run the server along with Java. Also have maven installed in system

Steps to execute

1 - Create user.properties file to be used in pom.xml . Sample file exists as user_proto.properties

2 - Add tomcat.home variable in properties file

3 - Run mvn clean install

4 - Start tomcat server - sh catalina.sh run

Server should be up.

Try

1 - http://localhost:8080/v2/api-docs - For swagger json

2 - http://localhost:8080/swagger-ui.html - For swagger UI


Go through the controller folder to understand the API structure. Also feel free to try APIs written in controller class once the service is up.