1. List All Students
curl -X GET http://yourdomain.com/api/student/list \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"status": "Active",
"class": "1st Std",
"section": "A"
}'
2. Search Students
curl -X GET http://yourdomain.com/api/student/search \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"term": "John"
}'
3. Get Student Overview
curl -X GET http://yourdomain.com/api/student/overview \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"student_id": 1
}'
4. Save Student (Add/Update)
curl -X POST http://yourdomain.com/api/student/save \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"studentData": {
"student_id": null,
"admission_no": "A12345",
"first_name": "John",
"last_name": "Doe",
"date_of_birth": "2010-01-01",
"contact_number": "1234567890",
"address": "123 Main St",
"enrollment_date": "2024-06-01",
"current_grade": 3,
"status": "Active"
},
"parentData": {
"parent_id": null,
"first_name": "Jane",
"last_name": "Doe",
"contact_number": "0987654321",
"address": "123 Main St",
"email": "jane.doe@example.com"
},
"guardianData": {
"guardian_id": null,
"first_name": "Richard",
"last_name": "Roe",
"relationship": "Uncle",
"contact_number": "1122334455",
"email": "richard.roe@example.com",
"address": "456 Elm St"
},
"enrollData": {
"enrollment_id": null,
"enrollment_date": "2024-06-01",
"status": "Active"
},
"gradeData": [
{
"grade_id": null,
"subject_id": 1,
"grade": "A",
"term": "Term 1"
},
{
"grade_id": null,
"subject_id": 2,
"grade": "B",
"term": "Term 1"
}
]
}'
5. Delete Student by ID
curl -X DELETE http://yourdomain.com/api/student/delete \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"studentId": 1
}'
6. Parent Login
curl -X POST http://yourdomain.com/api/parent/login \
-H "Content-Type: application/json" \
-d '{
"clientId": "client1",
"contact_number": "0987654321",
"password": "your_password"
}'
7. Find Parent or Gaurdian by contact_number
curl -X POST http://yourdomain.com/api/student/findParent \
-H "Content-Type: application/json" \
-d '{
"clientId": "client1",
"contact_number": "0987654321",
"type": "Parent"
}'
Mark Student Attendance
curl -X POST http://yourdomain.com/api/student/attendance/mark \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"attendance_id": null,
"student_id": 123,
"status": "Present",
"clientId": "your_client_id"
}'
List Student Attendance
curl -X POST http://yourdomain.com/api/student/attendance/list \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"student_id": 123,
"from_date": "2024-01-01",
"to_date": "2024-01-31",
"academic_year_id": 1,
"statuses": ["Present", "Absent"],
"offset": 0,
"limit": 10,
"clientId": "your_client_id"
}'
Delete Student Attendance
curl -X DELETE http://yourdomain.com/api/student/attendance/delete \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"attendance_id": 1,
"clientId": "your_client_id"
}'
Mark Attendance List
curl -X POST http://yourdomain.com/api/student/markattendance/list \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"clientId": "your_client_id"
}'
Apply Student Leave
curl -X POST http://yourdomain.com/api/student/leave/apply \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"student_id": 1,
"start_date": "2024-08-01",
"end_date": "2024-08-07",
"type": "Sick Leave",
"status": "Pending",
"clientId": "your_client_id"
}'
List Pending Student Leaves
curl -X POST http://yourdomain.com/api/student/leave/pending \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"clientId": "your_client_id"
}'
Get Student Leaves
curl -X POST http://yourdomain.com/api/student/leave/get \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"student_id": 1,
"from_date": "2024-08-01",
"to_date": "2024-08-31",
"leave_types": ["Sick Leave", "Personal Leave"],
"statuses": ["Pending", "Approved"],
"limit": 10,
"offset": 0,
"clientId": "your_client_id"
}'
Update Student Leave Status
curl -X POST http://yourdomain.com/api/student/leave/update \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"leave_id": 1,
"status": "Approved",
"clientId": "your_client_id"
}'
APPs
1. Get Class Attendance
curl -X GET http://yourdomain.com/api/app/student/getClassAttendance \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"class_id": 1
}'