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.
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
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 |
