REST Springfox/Swagger
Example
Build
Execute the following command from the parent
directory:
mvn clean install
Once the build
completes successfully, you should have the artifact rest-springfox.war in the target folder.
Deploy
You can deploy
the rest-springfox.war in a Tomcat web container or any other JEE web
container of your choice.
Swagger Endpoints
Once you have successfully deployed the war
file, the Swagger endpoints can be accessed at:
- Testing Swagger 2.0 JSON API documentation
http://localhost:8080/rest-springfox/v2/api-docs
- Testing Swagger UI
http://localhost:8080/rest-springfox/swagger-ui.html
If you are interested in knowing more about
this project, you can find in my blog 'Swagger for the REST of Us' .
No comments:
Post a Comment