List All Classes with Assigned Teachers

Endpoint: POST /academic/class_teacher/list


curl -X POST {{base_url}}/academic/class_teacher/list \
-H "Content-Type: application/json"

This command lists all classes along with their assigned class teachers.

Assign a Class Teacher to a Class

Endpoint: POST /academic/class_teacher/assign


curl -X POST {{base_url}}/academic/class_teacher/assign \
-H "Content-Type: application/json" \
-d '{
    "class_id": 1,
    "staff_id": 101
}'

This command assigns a teacher to a specific class. Replace class_id and staff_id with the appropriate values.

Delete a Class Teacher Assignment

Endpoint: POST /academic/class_teacher/delete


curl -X POST {{base_url}}/academic/class_teacher/delete \
-H "Content-Type: application/json" \
-d '{
    "class_id": 1
}'

This command deletes the class teacher assignment from the specified class. Replace class_id with the appropriate value.