Examinations
Student Registration
Examination Student Registration APIs
Base URL: http://192.168.100.250/
All endpoints except index() return old flat JSON format (not ApiResponse envelope). The Blade JS checks response.success, response.student, etc. directly.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /stu-reg | Get filter form data |
| GET | /student-registration/students | Get students DataTable |
| GET | /student-registration/student/{id} | Get single student with registration |
| POST | /student-registration/store | Store registration |
| POST | /student-registration/bulk-update | Bulk update registrations |
| POST | /student-registration/selected-students | Get selected students |
Filter Form
GET /stu-reg
Accept: application/jsonResponse includes programs and academicYears.
Student DataTable
GET /student-registration/students?program_id=7&academic_year_id=10&semester_id=7| Query Param | Required |
|---|---|
program_id | Yes |
academic_year_id | Yes |
semester_id | Yes |
Response is DataTable format (server-side paginated). No ApiResponse envelope.
Get Single Student
GET /student-registration/student/{id}Response includes student and registration objects (flat format).
Store Registration
POST /student-registration/store
Content-Type: application/jsonRequest Body:
{
"student_id": 1,
"board_reg": "123456",
"roll_no": "10",
"registration_year": "2080",
"status": "registered"
}Bulk Update
POST /student-registration/bulk-update
Content-Type: application/jsonRegister Bulk:
{
"student_ids": [1, 2, 3],
"action": "register",
"registration_year": "2080"
}Unregister Bulk:
{
"student_ids": [1, 2, 3],
"action": "unregister"
}Update Board Reg Numbers:
{
"student_ids": [1, 2, 3],
"action": "update_board_reg",
"board_regs": { "1": "REG001", "2": "REG002", "3": "REG003" }
}Get Selected Students
POST /student-registration/selected-students
Content-Type: application/jsonRequest Body:
{
"student_ids": [1, 2, 3]
}