Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 488 Bytes

File metadata and controls

26 lines (14 loc) · 488 Bytes

Swagger_SpringBoot

Swagger implementation in Spring Boot

Steps

  1. Add Swagger Spring Dependency

  2. Enabling swagger in the code by using @EnableSwagger2 annotation

  3. Configure Swagger

  4. Add details as annotations to API

Endpoint for accessing docs as json

http://localhost:8080/v2/api-docs

Endpoint for accessing docs as html

http://localhost:8080/swagger-ui.html

In Swagger UI,

  1. We can view all the APIs in our application
  2. We can provide test data and test the APIs