This project is a RESTful API built with Spring Boot, allowing CRUD operations on Student and Course models using generic inheritance via a base controller.
src/
└── main/
└── java/
└── com/backend/Backend/
├── Controller/
│ ├── CRUDController.java
│ ├── AppController.java
│ └── CourseController.java
└── model/
├── Student.java
└── Course.java
- Java 17+
- Maven 3.6+
- Spring Boot 3.x
./mvnw spring-boot:runThe application will run on:
http://localhost:8080
GET /students/– Get all studentsGET /students/{id}– Get student by IDPOST /students/add/{id}– Add new studentPUT /students/update/{id}– Update existing studentDELETE /students/delete/{id}– Delete student
GET /course/– Get all coursesGET /course/{id}– Get course by IDPOST /course/add/{id}– Add new coursePUT /course/update/{id}– Update existing courseDELETE /course/delete/{id}– Delete course
- Spring Boot
- Spring Web (REST Controller)
- Java 17
- Maven
This project uses a generic CRUDController<K, T> class that is extended by other controllers like CourseController and AppController to manage entities.
MIT License
© 2025 DInuki Prarthana
Made with ❤️ by Dinuki Prarthana
🔗 GitHub: @Dinuki85