- API to create a new Student Mentor and Assigning them to each other
- Keep track of mentor assigned to the students previously
- Can change mentor for students it will be automatically updated to both students and mentors
- Base URL -
https://student-mentor-assign-82x1.onrender.com/
- Get All the Students data
- Request Data Format
- No parameter required
- Get All the Students data
- Request Data Format
- No parameter required
- Get All the Students with No Mentors Assigned
- Request Data Format
- No parameter required
- Get All the students Assigned to the particular mentor
- Request Data Format
- Requires Mentor ID in URL params
- /mentor/allStudents/ :id
- Get All the Old Mentor of the particular Student
- Request Data Format
- Requires Student ID in URL params
- /student/oldmentors/ :id
- Add new Mentor to the Database
- Request Data Format { "mentor_name": "mongo", "course": "Full Stack Development" }
- Add new Student to the Database
- Request Data Format { "student_name": "doe", "batch": "B51WD2" }
-
Update the Students to Mentor and Automatically update or change the Mentor in Students
-
Request Data Format
-
Requires a Mentor ID
-
Requires a Student ID
-
A single Stduent ID can be in a String or Array
-
Multiple Student ID should be in Array
-
Request Data Format { "mentor_id": "656f7bc38a851844b6a9a2f1", "student_id": ["656f6cdce45d1a291671eb51", "656f6cbde45d1a291671eb49"] }
{ "mentor_id": "656f7bc38a851844b6a9a2f1", "student_id": "656f6cdce45d1a291671eb51" }