Osztályfőnökök lekérése
Kérés a szervertől
GEThttps://[instituteCode].e-kreta.hu/ellenorzo/v3/felhasznalok/Alkalmazottak/Tanarok/Osztalyfonokok?Uids={Uids} (opcionális)
HEADERapiKey = 21ff6c25-d1da-4a68-a811-c881a6057463 (opcionális)
HEADERAuthorization = Bearer xxxxxxxxxx (Bearer tokened)
Válasz a szervertől
Ismeretlen hiba: (500 Internal Server Error)
{
"ExceptionId": "xxxxxxxxxx",
"ExceptionType": "None",
"Message": "Ismeretlen hiba történt!",
"ErrorList": null
}
Nem létező entitás: (404 Not Found)
{
"ExceptionId": "xxxxxxxxxx",
"ExceptionType": "NemLetezoEntitas",
"Message": "Nem létező entitás!",
"ErrorList": null
}
Helytelen bearer token: (401 Unauthorized)
invalid_grant
Structure: List<ClassMaster>
C# class file: ClassMaster.cs
| Field name | Variable name | Variable type |
|---|---|---|
| Osztalyai | listOfClass | List<SchoolClass> |
| Tanar | teacher | Teacher |
| Uid | uid | string |
Email:
| Field name | Variable name | Variable type |
|---|---|---|
| string | ||
| Uid | uid | string |
Employee:
| Field name | Variable name | Variable type |
|---|---|---|
| Emailek | List<Email> | |
| Nev | name | string |
| Telefonok | phoneList | List<Phone> |
| Uid | uid | string |
Phone:
| Field name | Variable name | Variable type |
|---|---|---|
| Telefonszam | phone | string |
| Uid | uid | string |
Teacher:
| Field name | Variable name | Variable type |
|---|---|---|
| Alkalmazott | employee | Employee |
| Uid | uid | string |
cURL:
curl "https://{instituteCode}.e-kreta.hu/ellenorzo/v3/felhasznalok/Alkalmazottak/Tanarok/Osztalyfonokok?Uids={Uids}" -H "apiKey: 21ff6c25-d1da-4a68-a811-c881a6057463" --oauth2-bearer "{accessToken}"