GET ./cadre

Tags: simple-query, pagination

It is used to get the list of teachers and other school staff.

GET parameters

NameValue TypeValidationDetails
ascIDintOptionalSchool year. It becomes mandatory if the matID, astID are used.
clIDintOptionalIt is used to return just the teachears that are teaching that class.
matIDintOptionalIt is used to return just the teachears that are teaching that subject.
astIDintOptionalIt is used to return just the teachears that are teaching in that school year.
roleIDintOptionalIt is used to return just the teachears that have the specified role.
cadNumePrenumestringOptionalIt is used to return just the teachears that have the specified first name OR last name.
cadCnpnumericOptionalIt is used to return just the teachears that have the specified cnp.
cadIsDeletedintOptional;It is used to return just the teachears that have the specified status. 0 - activ, 1 - deleted

Output example

{
"meta": {
"countTotal": "4",
"countData": "4",
"countOffset": "0"
},
"data": [
{
"cadID": "5222",
"cadCnp": null,
"cadNume": "Nume",
"cadPrenume": "Prenume",
"cadDataNasterii": "1988-11-25",
"cadSex": "2",
"cadAdresa": "",
"cadEmail": "a@google.com",
"cadEmailValidat": "1",
"cadTelefon": "+40740836185",
"cadTelefonValidat": "1",
"cadDataInsert": "0000-00-00 00:00:00",
"functii": [
{
"cfID": "14",
"cfNume": "text_profesor"
}
]
},
{
"cadID": "5226",
"cadCnp": "21235245242421",
"cadNume": "delia",
"cadPrenume": "profesor",
"cadDataNasterii": "1967-04-10",
"cadSex": "2",
"cadAdresa": "",
"cadEmail": "test2@yahoo.com",
"cadEmailValidat": "0",
"cadTelefon": "0723398455",
"cadTelefonValidat": "0",
"cadDataInsert": "0000-00-00 00:00:00",
"functii": [
{
"cfID": "14",
"cfNume": "text_profesor"
}
]
},
{
"cadID": "5227",
"cadCnp": "21235245242421",
"cadNume": "Test",
"cadPrenume": "Prenume",
"cadDataNasterii": "1956-12-10",
"cadSex": "2",
"cadAdresa": "",
"cadEmail": "test@yahoo.com",
"cadEmailValidat": "0",
"cadTelefon": "076000000",
"cadTelefonValidat": "1",
"cadDataInsert": "0000-00-00 00:00:00",
"functii": [
{
"cfID": "18",
"cfNume": "text_personal_auxiliar"
}
]
}
]
}