GET ./absente
It is used to return the absences for a user OR for all users (if you use an user type APP)
absStatus
will have the value:
- 1 = unexcused absence
- 2 = excused absences
GET parameters
Name | Value Type | Validation | Details |
---|---|---|---|
ascID | int | Required | School year ID |
elevID | int | Required | Student ID; Required if the call is made by user typr student or parent |
cmcID | int | Required | Association ID-ul between a teacher, a class, and a course. It is mandatory for a professor that doesn't have headmaster/secretary permissions. |
cuMaterie | int | Optional; values[1] | The course where the student has an absence. If present the response will have a key named cmcMaterie |
cuClasa | int | Optional; values[1] | values[1]; If present, the answer will contain the key clasa with info about class association. |
Output example
{"meta": {"countTotal": "143","countData": "50","countOffset": "0"},"data": [{"absID": "147358","absE2mID": "133727","absCadruID": "5335","absSanID": "39","absData": "2017-01-04","absDataInsert": "2017-02-01 12:09:22","absStatus": "1","absMotivareCadruID": null,"absMotivareData": null,"absMotivareExtraInfo": null,"absObs": null,"clasa": {"clID": "276","clNume": "XI A"}},{"absID": "147359","absE2mID": "133731","absCadruID": "5335","absSanID": "39","absData": "2017-01-24","absDataInsert": "2017-02-01 12:11:34","absStatus": "1","absMotivareCadruID": null,"absMotivareData": null,"absMotivareExtraInfo": null,"absObs": null,"clasa": {"clID": "276","clNume": "XI A"}},{"absID": "147360","absE2mID": "133726","absCadruID": "5335","absSanID": "39","absData": "2017-01-11","absDataInsert": "2017-02-01 17:15:47","absStatus": "1","absMotivareCadruID": null,"absMotivareData": null,"absMotivareExtraInfo": null,"absObs": null,"clasa": {"clID": "276","clNume": "XI A"}}]}