Skip to content

dineschandgr/Swagger_SpringBoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages