Posts

Showing posts with the label Swagger

Setting up Swagger in Spring REST API

Setting Up Swagger with a Spring REST API 1. Overview Overview Good documentation is important when creating REST APIs. Moreover, whenever you change the API, you must specify the same in the reference documentation. It is very tedious to reflect this manually, so automating it is essential. In this tutorial we will  look at Swagger 2 for a Spring REST web service . In this document, we will use Springfox, the implementation of the Swager 2 specification. If you are not familiar with Swagger, we recommend that you visit the official webpage before reading this article  . 2.  Target Project REST service creation is not a category of this document, so users should already have a project that can be easily applied. If not already there, the following link would be a good starting point: Build a REST API with Spring 4 and Java Config article Building a RESTful Web Service . 3. Adding the Maven Dependency As mentioned above, we will use the Spring Fox imp...