The Course App API is a backend service for managing courses, students, and their enrollments. It provides endpoints to manage course details, student information, and enrollments, allowing clients to fetch courses a student is enrolled in and students enrolled in a particular course.
- Manage Courses: Add, update, delete, and retrieve course details.
- Manage Students: Add, update, delete, and retrieve student information.
- Manage Enrollments: Enroll students in courses and fetch enrollment details.
- Java 17
- Spring Boot
- Spring Data JPA
- Hibernate
- MySQL
- Postman
Modify application.properties file:
- Modify the
application.propertiesfile to include the username and password for MySQL database
-
Get all courses:
GET /api/courses
-
Get a course by ID:
GET /api/courses/{id}
-
Add a new course:
POST /api/courses
-
Update a course:
PUT /api/courses/{id}
-
Delete a course:
DELETE /api/courses/{id}
-
Get all students:
GET /api/students
-
Get a student by ID:
GET /api/students/{id}
-
Add a new student:
POST /api/students
-
Update a student:
PUT /api/students/{id}
-
Delete a student:
DELETE /api/students/{id}
-
Get all courses a student is enrolled in:
GET /api/student/{id}/courses
-
Get all students enrolled in a course:
GET /api/course/{id}/students
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.