Academic Year and Get Attendance API Details V2 - PaperLessEdu/schoolerp-web-ui GitHub Wiki
Attendance Report
Define Academic Year
We will add one screen to create Academic Year.
Academic Year Post JSON
- { "name": "2018-2019", "startDate": "2018-06-19", "endDate": "2019-04-24", “weekendType”: “EverySaturdayEverySunday”, “isCurrent”: true }
curl -X POST \ http://localhost:9090/academicyear \ -H 'Cache-Control: no-cache' \ -H 'Content-Type: application/json' \ -H 'Postman-Token: f77172e9-1774-4aef-b6c9-65bcce3fea74' \ -d ' { "name": "2018-2019", "startDate": "2018-06-19", "endDate": "2019-04-24", "weekendType": "EverySaturdayEverySunday", "current": "true" } '
Get All Academic Years JSON Response
- [{
“Id”: 1,
"name": "2018-2019",
"startDate": "2018-06-19",
"endDate": "2019-04-24",
“weekendType”: “EverySaturdayEverySunday”,
“isCurrent”: true
}]
curl -X GET \ http://localhost:9090/academicyear \ -H 'Cache-Control: no-cache' \ -H 'Content-Type: application/json' \ -H 'Postman-Token: 93d80edd-c143-4d08-af06-2516b0bdd259'
Attendance Report POST API
Request Body:
-
{ “standard_id”: 1, “division_id”: 1 }
-
Response Body: { "attendance": [{ "student_id": 1, "absentDays": 3, "firstName": "abc", "middleName": "abc", "lastName": "abc" }, { "student_id": 2, "absentDays": 5, "firstName": "abc", "middleName": "abc", "lastName": "abc" }, { "student_id": 3, "absentDays": 1, "firstName": "abc", "middleName": "abc", "lastName": "abc" }] }
curl -X POST \
http://localhost:9090/attendance/report
-H 'Cache-Control: no-cache'
-H 'Content-Type: application/json'
-H 'Postman-Token: 60723bbb-65b8-4790-a6af-5b4b50fd396a'
-d '{ "division_id": 6 ,"standard_id": 1 }'
#response [ { "student_id": 13, "absentDays": 2 }, { "student_id": 14, "absentDays": 1 } ]