This API Gateway routes requests to the appropriate microservices: Student Service, Class Schedule Service, and Notification Service.
- Student Service: Runs on port
5001
- Class Schedule Service: Runs on port
5002
- Notification Service: Runs on port
5003
-
Create Student
- POST
/students/
- Request Body:
{ "name": "string", "email": "string", "address": "string", "contactNo": "string", "cgpa": 0 }
- POST
-
Get Student by ID
- GET
/students/{student_id}
- GET
-
Get All Students
- GET
/students/
- GET
-
Delete Student
- DELETE
/students/{student_id}
- DELETE
-
Create Class Schedule
- POST
/class_schedules/
- Request Body:
{ "teacher_id": "int", "student_id": "int", "time_slot": "string", "schedule_name": "string" }
- POST
-
Get Class Schedule by ID
- GET
/class_schedules/{schedule_id}
- GET
-
Get All Class Schedules
- GET
/class_schedules/
- GET
-
Create Teacher
- POST
/teachers/
- Request Body:
{ "name": "string", "email": "string", "address": "string", "contactNo": "string" }
- POST
-
Get Teacher by ID
- GET
/teachers/{teacher_id}
- GET
-
Get All Teachers
- GET
/teachers/
- GET
-
Update Teacher
- PUT
/teachers/{teacher_id}
- Request Body:
{ "name": "string", "email": "string", "address": "string", "contactNo": "string" }
- PUT
-
Delete Teacher
- DELETE
/teachers/{teacher_id}
- DELETE
- Send Email
- POST
/send-email/
- Request Body:
{ "recipient": "string", "content": "string" }
- POST
- Install dependencies:
pip install -r requirements.txt