Értékelések lekérése
Kérés a szervertől
GEThttps://[instituteCode].e-kreta.hu/ellenorzo/v3/sajat/Ertekelesek?datumTol={datumTol}&datumIg={datumIg} (opcionális)
HEADERapiKey = 21ff6c25-d1da-4a68-a811-c881a6057463 (opcionális)
HEADERAuthorization = Bearer xxxxxxxxxx (Bearer tokened)
Válasz a szervertől
Sikeres lekérdezés: (200 OK)
[ { "KeszitesDatuma": "xxxxxxxxxx", "Jelleg": "xxxxxxxxxx", "ErtekFajta": { "Leiras": "xxxxxxxxxx", "Nev": "xxxxxxxxxx", "Uid": "xxxxxxxxxx" }, "OsztalyCsoport": { "Uid": "xxxxxxxxxx" }, "Mod": { "Leiras": "xxxxxxxxxx", "Nev": "xxxxxxxxxx", "Uid": "xxxxxxxxxx" }, "SzamErtek": 0, "RogzitesDatuma": "xxxxxxxxxx", "LattamozasDatuma": "xxxxxxxxxx", "SzovegesErtekelesRovidNev": "xxxxxxxxxx", "SortIndex": 0, "Tantargy": { "Nev": "xxxxxxxxxx", "Kategoria": { "Leiras": "xxxxxxxxxx", "Nev": "xxxxxxxxxx", "Uid": "xxxxxxxxxx" }, "Uid": "xxxxxxxxxx" }, "ErtekeloTanarNeve": "xxxxxxxxxx", "Tema": "xxxxxxxxxx", "Tipus": { "Leiras": "xxxxxxxxxx", "Nev": "xxxxxxxxxx", "Uid": "xxxxxxxxxx" }, "Uid": "xxxxxxxxxx", "SzovegesErtek": "xxxxxxxxxx", "SulySzazalekErteke": "xxxxxxxxxx" } ]
A datumTol és a datumIg paraméter között több van mint 1 hónap: (400 Bad Request)
{ "ExceptionId": "xxxxxxxxxx", "ExceptionType": "ModelValidacio", "Message": "Validációs hiba történt!", "ErrorList": [ { "PropertyName": "custom_1", "Message": "A DatumTol és a DatumIg paraméterek meg vannak adva, de maximum 1 hónap intervallum kérdezhető le!", "ExceptionType": "ModelValidacio" } ] }
A datumTol paraméter nagyobb, mint a datumIg paraméter: (400 Bad Request)
{ "ExceptionId": "xxxxxxxxxx", "ExceptionType": "ModelValidacio", "Message": "Validációs hiba történt!", "ErrorList": [ { "PropertyName": "custom_1", "Message": "A DatumTol és a DatumIg paraméterek meg vannak adva, de a DatumTol nagyobb, mint a DatumIg értek!", "ExceptionType": "ModelValidacio" } ] }
Helytelen bearer token: (401 Unauthorized)
invalid_grant
Structure: List<Evaluation>
C# class file: Evaluation.cs
Field name | Variable name | Variable type |
---|---|---|
KeszitesDatuma | creatingTimeAsString | string |
Jelleg | form | string |
ErtekFajta | formType | ValueDescriptor |
OsztalyCsoport | group | UidStructure |
Mod | mode | ValueDescriptor |
SzamErtek | numberValue | int |
RogzitesDatuma | recordDateAsString | string |
LattamozasDatuma | seenByTutelaryAsString | string |
SzovegesErtekelesRovidNev | shortValue | string |
SortIndex | sortIndex | int |
Tantargy | subject | SubjectDescriptor |
ErtekeloTanarNeve | teacher | string |
Tema | theme | string |
Tipus | type | ValueDescriptor |
Uid | uid | string |
SzovegesErtek | value | string |
SulySzazalekErteke | weight | string |
cURL:
curl "https://{instituteCode}.e-kreta.hu/ellenorzo/v3/sajat/Ertekelesek?datumTol={datumTol}&datumIg={datumIg}" -H "apiKey: 21ff6c25-d1da-4a68-a811-c881a6057463" --oauth2-bearer "{accessToken}"