Accessing Swagger UI

Now navigate to http://server:port/swagger-ui/index.html/.



Spring Boot – REST API Documentation using Swagger

REST stands for Representational State Transfer. REST is an architectural design pattern that defines constraints that are used in web service development. Swagger is a framework in which we can test our REST APIs for different HTTP requests i.e. :

  • GET
  • POST
  • PUT
  • DELETE

In this article, we will be discussing using Swagger for documenting APIs in Spring Boot applications.

Similar Reads

What is Swagger?

Swagger is an open-source API Documentation framework used for documenting the rest APIs. it provides the HTML view of the API documentation with JSON support and detailed information on the HTTP methods. REST APIs are designed to be used in some kinds of applications....

Steps to use Swagger for documenting APIs

There are two Main Steps to use Swagger for Documenting APIS these are Project Setup and then Setting up Swagger....

Project Setup

Step 1: Maven Project...

Setting up Swagger

...

Accessing Swagger UI

...