Rest API- Swagger Documentation
Swagger Documentation Swagger is a set of tools built around the OpenAPI Specification that helps developers design, build, document, and consume RESTful web services. It allows developers to describe the structure of their APIs in a standardized format, making it easier for both humans and computers to understand and interact with the APIs. Step 1 Add Swagger Dependencies in pom.xml Step 2 Swagger URL : http://localhost:8090/swagger-ui/index.html To generate Swagger documentation, simply add the following dependencies to your pom.xml, start the Spring Boot application, and then access the specified URL in your browser. To Customize Swagger Documentation In this document we applied swagger annotations in three levels 1.application level 2.controller level 3.Dto leve application level @OpenAPIDefinition : This annotation is used to provide metadata about your API. It's typically used in Spring applications to generate OpenAPI (formerly Swagger) documentation. ...