Swagger is a tool for visualizing restful webservice.
Official website: Http://swagger.io
Effect
As you can see, swagger clearly shows the method, address, and JSON format of the Web service. You can also view the results by making service calls directly through it.
How it works View part : Swagger-ui is a series of CSS\JS resources that show users the RESTful API information for an app through an HTML page. It obtains the necessary information by sending an AJAX request to the Swagger-core backend module.
Backstage Section : Swagger-core through @com. Wordnik.swagger.annotations.Api, @ Com.wordnik.swagger.annotations.ApiOperation such annotations, you can let swagger know your API information, in order to answer the Web page in JSON format AJAX request.
Other tools integrate Tomcat as Httpserver,jersey as a webservice frame.
Swagger (Tools for visualizing restful APIs)