Save Exam Type (Add/Update)
curl -X POST http://yourdomain.com/api/academic/exam_type/save \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"clientId": "client1",
"examTypeData": {
"exam_type_id": null, # Use null for adding a new exam type or provide exam_type_id for updating
"name": "Quarterly",
"description": "Quarterly exam description"
}
}'
Delete Exam Type
curl -X POST http://yourdomain.com/api/academic/exam_type/delete \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"clientId": "client1",
"exam_type_id": 1 # Provide the exam_type_id you wish to delete
}'
List Exam Types
curl -X POST http://yourdomain.com/api/academic/exam_type/list \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"clientId": "client1",
"limit": 10, # Optional: Limit the number of records
"offset": 0 # Optional: Offset for pagination
}'
Get Exam Type Details
curl -X POST http://yourdomain.com/api/academic/exam_type/get \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"clientId": "client1",
"exam_type_id": 1 # Provide the exam_type_id to retrieve details
}'
Save Exam (Add/Update)
curl -X POST http://yourdomain.com/api/academic/exam/save \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"clientId": "client1",
"examData": {
"exam_id": null, # Use null for adding a new exam or provide exam_id for updating
"exam_type_id": 1, # Provide the exam_type_id (foreign key)
"name": "Midterm Exam 2024",
"start_date": "2024-09-01",
"end_date": "2024-09-05",
"academic_year_id": 1 # Provide the academic_year_id (foreign key)
}
}'
Delete Exam
curl -X POST http://yourdomain.com/api/academic/exam/delete \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"clientId": "client1",
"exam_id": 1 # Provide the exam_id you wish to delete
}'
List Exams
curl -X POST http://yourdomain.com/api/academic/exam/list \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"clientId": "client1",
"limit": 10, # Optional: Limit the number of records
"offset": 0 # Optional: Offset for pagination
}'
Get Exam Details
curl -X POST http://yourdomain.com/api/academic/exam/get \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"clientId": "client1",
"exam_id": 1 # Provide the exam_id to retrieve details
}'