Endpoint: POST /v1/teachers/schedule (new controller)
A teacher should be able to update/insert a weekly schedule for himself/herself
Technical notes:
- Investigate merge in SQL. it will help you to update/insert (depending on the existence of data) in one method. Let me know when you are stuck on this.
- It would be great to use a structure for payload
TeacherSchedulePayload {
Map<DayOfWeek, TeacherScheduleData> entries;
static class TeacherScheduleData {
}
}
Endpoint: POST /v1/teachers/schedule (new controller)
A teacher should be able to update/insert a weekly schedule for himself/herself
Technical notes: