GET ./ani/scolari

Tags: public, simple-query

It is used to return the school years.

If the request is made without the token, the endpoint will return all school years. If the request is made with the token, the endpoint will return only the associated school years for that school.

GET parameters

NameValue TypeValidationDetails
cuSemestreintOptionalValue[1]; Return the semesters for that school year. If used response will have a key named "semestre"
liceuIDintOptionalThis field is required only for userType APP

Validation

Error FieldError CodeError Message
ascID101Invalid ascID
liceuID102ID scoala invalid.

Output example

{
"meta": {
"countTotal": "1",
"countData": "1",
"countOffset": "0"
},
"data": [
{
"ascID": "21",
"ascNume": "2016/2017",
"ascIsActiv": "1",
"ascNrOrdine": "2016",
"ascDataStart": "2016-09-12",
"ascDataEnd": "2017-09-10",
"semestre": [
{
"sanID": "39",
"sanAscID": "21",
"sanNume": "san_semestrul_1",
"sanPrescurtare": "san_scurt_sem_1",
"sanIsActiv": "0",
"sanIsCorigenta": "0",
"sanDataStart": "2016-09-14",
"sanDataEnd": "2017-02-01",
"sanPozitiaAfisare": "1",
"sanDescriere": ""
},
{
"sanID": "40",
"sanAscID": "21",
"sanNume": "san_semestrul_2",
"sanPrescurtare": "san_scurt_sem_2",
"sanIsActiv": "1",
"sanIsCorigenta": "0",
"sanDataStart": "2017-02-02",
"sanDataEnd": "2017-07-17",
"sanPozitiaAfisare": "2",
"sanDescriere": ""
}
]
}
]
}