Closed janithlahirukariyawasam closed 1 year ago
Description: This issue involves implementing an API to manage Approve/Reject status of mentors. The endpoint should allow Admin to make a PUT request to {{baseUrl}}/api/admin/mentor/{{mentorId}}/status.
{{baseUrl}}/api/admin/mentor/{{mentorId}}/status
Example of approve mentor
{ "mentor_id": 1, "created_at": "2023-06-30T10:00:00Z", "updated_at": "2023-06-30T14:30:00Z", "state": "APPROVED", "category": "Technology", "application": { "country": "", "areasOfExpertise": "", "expectationsFromMentees": "", "mentoringPhilosophy": "", "commitmentToProgram": false, "previousExperienceAsMentor": false, "reasonForBeingMentor": "", "cvLink": "" }, "availability": true, "profile": { "created_at": "2023-06-29T09:15:00Z", "updated_at": "2023-06-30T16:45:00Z", "primary_email": "mentor@example.com", "contact_email": "mentor_contact@example.com", "first_name": "John", "last_name": "Doe", "image_url": "https://example.com/mentor_profile_image.jpg", "linkedin_url": "https://www.linkedin.com/in/johndoe", "type": "DEFAULT", "uuid": "12345678-1234-5678-1234-567812345678" } }
Example of Reject mentor
{ "mentor_id": 1, "created_at": "2023-06-30T10:00:00Z", "updated_at": "2023-06-30T14:30:00Z", "state": "REJECTED", "category": "Technology", "application": { "country": "", "areasOfExpertise": "", "expectationsFromMentees": "", "mentoringPhilosophy": "", "commitmentToProgram": false, "previousExperienceAsMentor": false, "reasonForBeingMentor": "", "cvLink": "" }, "availability": true, "profile": { "created_at": "2023-06-29T09:15:00Z", "updated_at": "2023-06-30T16:45:00Z", "primary_email": "mentor@example.com", "contact_email": "mentor_contact@example.com", "first_name": "John", "last_name": "Doe", "image_url": "https://example.com/mentor_profile_image.jpg", "linkedin_url": "https://www.linkedin.com/in/johndoe", "type": "DEFAULT", "uuid": "12345678-1234-5678-1234-567812345678" } }
Tasks:
/controllers/mentor
API documentation: https://documenter.getpostman.com/view/27421496/2s93m1a4ac#8744a3ee-970f-489a-853d-8b23fdee8de3
ER diagram: https://drive.google.com/file/d/11KMgdNu2mSAm0Ner8UsSPQpZJS8QNqYc/view
Acceptance Criteria:
Additional Information: No
Related Dependencies or References: No
Description: This issue involves implementing an API to manage Approve/Reject status of mentors. The endpoint should allow Admin to make a PUT request to
{{baseUrl}}/api/admin/mentor/{{mentorId}}/status
.Example of approve mentor
Example of Reject mentor
Tasks:
/controllers/mentor
endpoint in the backend (create the route mentor if not created).API documentation: https://documenter.getpostman.com/view/27421496/2s93m1a4ac#8744a3ee-970f-489a-853d-8b23fdee8de3
ER diagram: https://drive.google.com/file/d/11KMgdNu2mSAm0Ner8UsSPQpZJS8QNqYc/view
Acceptance Criteria:
/controllers/mentor
is implemented via a PUT request.Additional Information: No
Related Dependencies or References: No