Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.16 KB

File metadata and controls

40 lines (26 loc) · 1.16 KB

Spring Boot 2 and Swagger 2 Sample Project

CircleCI

This is an example Spring boot 2 with REST, JPA, and Swagger 2. The swagger is handled by Springfox which is a library for enabling swagger.

Running

To build the jar:

mvn clean package

This command produces a jar file in target folder.

To run the jar:

java -jar target/springboot-sample-project-0.0.1-SNAPSHOT.jar

To open the swagger you can go to http://localhost:17001/swagger-ui.html

Endpoints

These are the list of APIs available in this sample application.

Method Url Description
GET /api/members Get all members
GET /api/member Get member by id
POST /api/member Create member
PUT /api/member Update member
DELETE /api/member Delete member

Screenshot

Swagger2 Screenshot