Clone the project
git clone https://github.com/Bihan001/spring-boot-rest-boilerplate.gitGo to the project directory
cd spring-boot-rest-boilerplateInstall dependencies
mvn clean installSet configurationfor the project
cd src/main/resources
cp ./templates/application-template.yml ./application-dev.yml
# Now replace variables with your valuesStart the server
- mvn spring-boot:run
Java 11, Spring Boot 2.6.6, Apache Maven 3.6.3
GET /api/v1/student/${studentId}| Parameter | Type | Description |
|---|---|---|
studentId |
Number |
Required. Student Id |
GET /api/v1/course/${courseId}| Parameter | Type | Description |
|---|---|---|
courseId |
Number |
Required. Course Id |
POST /api/v1/student/new| Parameter | Type | Description |
|---|---|---|
name |
String |
Required. Name of Student |
email |
String |
Required. Email of Student |
birthDate |
String |
Required. Birth Date of Student (YYYY-MM-DD) |
phone |
String |
Phone Number of Student |
address |
String |
Address of Student |
city |
String |
Current City of Student |
state |
String |
Current State of Student |
zip |
String |
Current Zip Code of Student |
country |
String |
Current Country of Student |
POST /api/v1/course/new| Parameter | Type | Description |
|---|---|---|
name |
String |
Required. Course Name |
description |
String |
Course Description |
duration |
Number |
Duration of the course in miliseconds |
POST /api/v1/course/enroll| Parameter | Type | Description |
|---|---|---|
studentId |
Number |
Required. Id of the student |
courseId |
Number |
Required. Id of the course |