<aside> ⚠️ Currently there is no logic to check for overlapping intervals
</aside>
POST
/api/availabilities/{userID}/weekly
Default: Status: 201 Created
Lack of required parameters: Status: 422 Unprocessable Entity
authenticatedUserID ≠ userID: Status: 403 Forbidden
<aside> ⚠️ Currently there is no permissions check that the authenticated user is in the same mentorship program as the query target user
</aside>
GET
/api/availabilities/{userID}/weekly
Default: Status: 200 OK
{
"timeslots": [
{
"timeslotID": 1,
"timeslotEnd": 2,
"programID": "test",
"timeslotStart": 1,
"mentorID": "xphS0uBKGkeQjhodWkEmaY19XwY2"
}
]
}
Lack of required parameters: Status: 422 Unprocessable Entity