GET ./parinti
It is used to return the list of parents, using different types of filters.
epTip options:
- 1 - father
- 2 - mother
- 3 - legal guardian
- 4 - other relative
- 5 - someone else
epSex options:
- 1 - male
- 2 - female
GET parameters
Name | Value Type | Validation | Details |
---|---|---|---|
ascID | int | Required | School year ID. |
astID | int | Optional | Study year ID. |
clID | int | Optional | Class ID. |
cmcID | int | Optional | The link ID between a teacher, a subject and a class. |
epElevID | int | Optional | Student ID. |
includeAll | int | Optional | Admin only; values[0,1]; Include all. Specifies whether to include deleted parents and / or deleted or transferred students. |
includeTransferred | int | Optional, value[0,1] | Specifies whether to include transferred students. It is used only by the administrator/director/secretary. |
liceuID | int | Optional | This field is required only for userType APP |
Validation
Error Field | Error Code | Error Message |
---|---|---|
ascID | 101 | Invalid ascID |
liceuID | 102 | ID scoala invalid. |
Output example
{"meta": {"countTotal": "5","countData": "5","countOffset": "0"},"data": [{"epID": "152241","epElevID": "152239","epNume": "Radu","epPrenume": "Popescu","epSex": "1","epTel": "+40741348183","epTip": "1","epEmail": "radu.popescu@yahoo.com","epAvatar": "http://oss-dev.adservio.net:9000/avatar/152239-3DoiFwtvGaWOVqdgrXKY.jpg","epAvatar": "http://oss-dev.adservio.net:9000/avatar/152239-3DoiFwtvGaWOVqdgrXKY.jpg",},{"epID": "152269","epElevID": "152268","epNume": null,"epPrenume": null,"epSex": "1","epTel": "","epTip": "2","epEmail": null,"epAvatar": null},{"epID": "152270","epElevID": "152238","epNume": "Giorgica","epPrenume": "Alex","epSex": "1","epTel": "+40753157188","epTip": "1","epEmail": "d@gm.co","epAvatar": "http://oss-dev.adservio.net:9000/avatar/152238-4JMwkdG7AFYpIDLc0uCK.jpg"},{"epID": "152286","epElevID": "152285","epNume": null,"epPrenume": null,"epSex": "1","epTel": null,"epTip": "1","epEmail": "ionel@gmail.com","epAvatar": ""},{"epID": "152290","epElevID": "152289","epNume": null,"epPrenume": null,"epSex": "1","epTel": "+40741348189","epTip": "1","epEmail": "sdjdjdjjjdjd@GG.COM","epAvatar": ""}]}