Get Attendance API Details V1 - PaperLessEdu/schoolerp-web-ui GitHub Wiki

Get Attendance Details by StandardId, DivisionId and Month

Post Request 1: If month is 00 then send all the attendance details for selected StandardId and DivisionId { "month": "00", “standard_id”: 1, “division_id”: 1 }

Post Request 2: If month is 01 then send January month attendance details for selected StandardId and DivisionId { "month": "01", “standard_id”: 1, “division_id”: 1 }

Month Map

  • Jan: 01
  • Feb: 02
  • Mar: 03
  • Apr: 04

Response: { "attendance": [{ "student_id": 1, "absentDays": 3, "firstName": "abc", "middleName": "abc", "lastName": "abc", "absentDates": ["2017-09-11", "2017-09-10", "2017-09-09"] }, { "student_id": 2, "absentDays": 5, "firstName": "abc", "middleName": "abc", "lastName": "abc", "absentDates": ["2017-09-11", "2017-09-10", "2017-09-09"] }, { "student_id": 3, "absentDays": 1, "firstName": "abc", "middleName": "abc", "lastName": "abc", "absentDates": ["2017-09-11", "2017-09-10", "2017-09-09"] }] }


`curl -X POST
http://localhost:9090/attendance/report
-H 'Cache-Control: no-cache'
-H 'Content-Type: application/json'
-H 'Postman-Token: d096aa16-9774-40af-b5f5-35550719364c'
-d '{ "division_id": 6 ,"standard_id": 1 ,"month":1}'

response

[ { "student_id": 13, "absentDays": 2, "firstName": "Prasad", "middleName": "Sharad", "lastName": "Khegade", "startdate": "2017-12-31T18:30:00.000+0000", "enddate": "2018-01-30T18:30:00.000+0000", "date": [ "2018-01-01T00:00:00.000+0000", "2018-01-11T00:00:00.000+0000" ] }, { "student_id": 14, "absentDays": 1, "firstName": "Prasad", "middleName": "Sharad", "lastName": "Khegade", "startdate": "2017-12-31T18:30:00.000+0000", "enddate": "2018-01-30T18:30:00.000+0000", "date": [ "2018-01-11T00:00:00.000+0000" ] } ]`


``