Simple Spring-boot Swagger Documentation
Learning Swagger documentation for rest.

To Add Swagger to your application
add the depedencies

 

 

create SwaggerConfiguration class

 

 

Add annotation swagger @ApiOperation
on the Method endpoint. Example

@ApiModel and @ApiModelProperty
this is used for tell consumer application
about information about the property (response/ request)
example

 

 

How to run
1. open the terminal

  1. open browser

Result:

swagger

 

Code : Spring Boot Swagger