You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue involves implementing the Mentor availability API endpoint. The endpoint should allow clients to make a POST request to {{baseUrl}}/api/me/availability and provide availability in the request body.
sample request body:
{
"availability": true
}
Tasks
Create a controller for the /controllers/mentors endpoint in the backend.
Parse and validate the request body to ensure it matches the expected format.
Store the mentor's availability in the database.
Implement appropriate error handling and response status codes for different scenarios (e.g., validation errors, database errors).
Write unit tests to validate the functionality and correctness of the endpoint.
Description
This issue involves implementing the Mentor availability API endpoint. The endpoint should allow clients to make a POST request to
{{baseUrl}}/api/me/availability
and provide availability in the request body.sample request body:
Tasks
/controllers/mentors
endpoint in the backend.API documentation: https://documenter.getpostman.com/view/27421496/2s93m1a4ac#3eeb0372-4e07-4a2a-b72d-114d8639783d
ER diagram: https://drive.google.com/file/d/11KMgdNu2mSAm0Ner8UsSPQpZJS8QNqYc/view
Acceptance Criteria
/controllers/mentors
is implemented and accessible via a PUT request.The text was updated successfully, but these errors were encountered: