Get Permissions
Get Permissions
Query Parameters
page Page
Possible values: >= 1
Default value: 1
Page number
size Size
Possible values: >= 1
and <= 100
Default value: 50
Page size
Responses
- 200
- 422
Successful Response
application/json
Schema
Example (from schema)
Schema
items object[] required
total Total required
page Page required
size Size required
pages Pages
{ "items": [ { "role": "admin", "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" } ], "total": 0, "page": 0, "size": 0, "pages": 0 }
Validation Error
application/json
Schema
Example (from schema)
Schema
detail object[]
{ "detail": [ { "loc": [ "string", 0 ], "msg": "string", "type": "string" } ] }
GET /permissions
Authorization
name: OAuth2PasswordBearertype: oauth2flows: {
"password": {
"scopes": {},
"tokenUrl": "login"
}
}
Request
Request
curl -L -X GET 'https://api.unionavatars.com/v2/permissions' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://api.unionavatars.com/v2/permissions' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://api.unionavatars.com/v2/permissions' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://api.unionavatars.com/v2/permissions' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://api.unionavatars.com/v2/permissions' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://api.unionavatars.com/v2/permissions' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://api.unionavatars.com/v2/permissions' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://api.unionavatars.com/v2/permissions' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://api.unionavatars.com/v2/permissions' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <TOKEN>'