1. List Exam Schedules

        curl -X POST "https://your-domain.com/api/academic/exam_schedule/list" \
        -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
        -H "Content-Type: application/json"
        
    
        curl -X GET "https://your-domain.com/api/academic/exam_schedule/list" \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
        "exam_id": 101,
        "class_id": 2
    }'
        
    
        curl -X POST "https://your-domain.com/api/academic/exam_schedule/list" \
        -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
        -H "Content-Type: application/json" \
        -d '{
            "class_id": 2
        }'
        
    
        curl -X POST "https://your-domain.com/api/academic/exam_schedule/list" \
        -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
        -H "Content-Type: application/json" \
        -d '{
            "class_level": 5
        }'
        
    

Expected API Response:


        {
            "status": 1,
            "data": [
              {
                "schedule_id": 1,
                "exam_id": 101,
                "class_level": 10,
                "class_id": 5,
                "status": "DRAFT",
                "staff_id": 10,
                "staff_name": "John Doe",
                "photo": "path/to/staff/photo.jpg",
                "exam_schedule_subjects": [
                  {
                    "subject_id": 1,
                    "subject": "Mathematics",
                    "portion": "Chapter 1 to 5",
                    "exam_date": "2024-10-10",
                    "start_time": "10:00:00",
                    "end_time": "12:00:00",
                    "class_name": "Class 10",
                    "subject_name": "Mathematics"
                  },
                  {
                    "subject_id": 2,
                    "subject": "Science",
                    "portion": "Chapter 3 to 7",
                    "exam_date": "2024-10-11",
                    "start_time": "12:00:00",
                    "end_time": "14:00:00",
                    "class_name": "Class 10",
                    "subject_name": "Science"
                  }
                ]
              },
              {
                "schedule_id": 2,
                "exam_id": 102,
                "class_level": 11,
                "class_id": null,
                "status": "PUBLISHED",
                "staff_id": 11,
                "staff_name": "Jane Smith",
                "photo": "path/to/staff/photo2.jpg",
                "exam_schedule_subjects": [
                  {
                    "subject_id": 3,
                    "subject": "History",
                    "portion": "World War II",
                    "exam_date": "2024-10-12",
                    "start_time": "09:00:00",
                    "end_time": "11:00:00",
                    "class_name": null,
                    "subject_name": "History"
                  }
                ]
              }
            ]
          }
          
          
    

Add/Update Exam Schedule (Combined API)

          curl -X POST https://yourdomain.com/api/exam-schedule/save \
-H "Content-Type: application/json" \
-d '{
    "exam_id": 123,
    "class_level": 10,
    "class_id": 5,
    "exam_date": "2024-10-10",
    "subjects": [
        {
            "subject_id": 1,
            "subject_name": "Mathematics",
            "exam_time": "10:00:00",
            "portion": "Chapter 1 to 5"
        },
        {
            "subject_id": 2,
            "subject_name": "Science",
            "exam_time": "12:00:00",
            "portion": "Chapter 3 to 7"
        }
    ],
    "staff_id": 10, 
    "schedule_id":null
}'

            
        

Delete an Exam Schedule

            curl -X POST "https://your-domain.com/api/academic/exam_schedule/delete" \
            -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
            -H "Content-Type: application/json" \
            -d '{
                "schedule_id": 1
            }'
            
        

Mark as done

curl -X POST "https://your-domain.com/api/academic/exam_schedule/mark_done" \
            -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
            -H "Content-Type: application/json" \
            -d '{
                "schedule_id": 1
            }'