Rest API using Spring Web MVC, Spring Data JPA, Spring Validation and MySQL database.
Student Endpoint :
POST : http://localhost:8080/api/students
GET : http://localhost:8080/api/students/{name}
GET : http://localhost:8080/api/students
PUT : http://localhost:8080/api/students/{name}
DELETE : http://localhost:8080/api/students/{name}
Course EndPoint :
POST : http://localhost:8080/api/courses
GET : http://localhost:8080/api/courses/{title}
GET : http://localhost:8080/api/courses
PUT : http://localhost:8080/api/courses/{title}
DELETE : http://localhost:8080/api/courses/{title}
- download or clone project from this repository
- create MySQL database
create school_management_system
- open project with IDE or Text Editor
- change username and password
- open
src/main/resources/application.properties
- change
spring.datasource.username
andspring.datasource.password
- open
- Build and run using maven
mvn spring:boot run
- test with postman