Horarios de coordinadores
Routes
Method |
URI |
Action |
GET |
/teachers/{teacher_id}/coordinator-schedules |
index |
POST |
/teachers/{teacher_id}/coordinator-schedules |
store |
POST |
/teachers/{teacher_id}/coordinator-schedules/bulk |
bulk store |
GET |
/coordinator-schedules/{coordinator_schedule_id} |
show |
PATCH |
/coordinator-schedules/{coordinator_schedule_id} |
update |
DELETE |
/coordinator-schedules/{coordinator_schedule_id} |
delete |
Model
{
"id": 1,
"day_of_week": 1, // Dia de la semana, 1~7
"class_hour_id": 1, // ID De hora de clase
"period_id": 1, // ID De periodo
"teacher_id": 1, // ID de profesor/coordinador
"specialization_id": 1, // ID de especialidad del coordinador
"updated_at": "2020-05-01 22:55:34",
"created_at": "2020-05-01 22:55:34"
}
Index
Route GET /teachers/{teacher_id}/coordinator-schedules
Store
Route POST /teachers/{teacher_id}/coordinator-schedules
Request Body
{
"day": 1, // required|integer|min:1|max:7
"class_hour_id": 1, // required|integer|exists
"specialization_id": 1 // required|integer|exists
}
Update
Route PATCH /coordinator-schedules/{coordinator_schedule_id}
Request Body
{
"day": 1, // required|integer|min:1|max:7
"class_hour_id": 1 // optional|integer|exists
}
Delete
Route DELETE /coordinator-schedules/{coordinator_schedule_id}
Bulk Store
Route POST /teachers/{teacher_id}/coordinator-schedules/bulk
Request Body
{
"specialization_id": 1, // required|integer|exists
"schedules": [ // required|array|min:1
{
"day": 1, // required|integer|min:1|max:7
"class_hours_ids": 1 // required|integer|exists
}
]
}