GET ./utilizatori/profile
It is used to get information about a user(uaID).
GET parameters
Name | Value Type | Validation | Details |
---|
uaID | int | Required | User ID. If ID is not provided, endpoint will return information about the authenticated user. |
cuElev | int | Optional Value[0,1] | If the parameter is provided, the response will have a key named elev that will return information about the student you are a parent of. |
cuPermisiuni | int | Optional Value[0,1] | If the parameter is provided, the response will have a key named permisiuni that will contain the user's permission. |
cuLiceu | int | Optional Value[0,1] | If the parameter is provided, the response will have information about the school where the user is studying |
withRoles | int | Optional Value[0,1] | If specified the roles will also be retrieved in the request. |
Validation
Error Field | Error Code | Error Message |
---|
uaID | 101 | Invalid username |
Output example
{
"uaID": "96514",
"uaTip": "3",
"uaUserName": "some-username",
"uaLiceuID": "17",
"uaLastLogin": "2017-10-13 19:47:47",
"prefAvatar": "https://dl.adservio.ro/avatar/96514-BrhPJteOic9jYLMVFqkz.jpg",
"prefLangID": "ro",
"uaFirstName": "Valeriu",
"uaLastName": "Anița",
"uaSex": "1",
"uaDataNasterii": "1987-10-21",
"uaEmail": "test@example.com",
"uaEmailValidat": "0",
"uaTel": "+40768248202",
"uaTelValidat": "0",
"permisiuni": [
{
"permID": "14",
"permNume": "Profesor"
},
{
"permID": "16",
"permNume": "Director"
},
{
"permID": "19",
"permNume": "Sincronizare catalog"
},
{
"permID": "26",
"permNume": "Educator"
}
],
"liceu": {
"liceuID": "2",
"liceuNume": "C.Național",
"liceuOrgType": "1",
"liceuOrgRootID": "260",
"liceuOrgParentID": null,
"liceuClasificare": "Colegiul",
"liceuLogo": "https://s3.eu-west-1.amazonaws.com/adservio-public/organizations/2/org-logos/FMgiH.png",
"judNume": "Iași",
"taraID": "1",
"taraNume": "tara_ro",
"taraNumeLocalized": "România"
}
}