Skip to content

ivanwidyan/springboot-2-and-swagger-2-sample-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Example Spring boot 2 with REST, JPA, and Swagger 2 project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages