Get the list of roles available in the system.
GET /api/v1/roles HTTP/1.1
Accept: application/json
Authorization: Bearer ...
----------------------------------------
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"id": "admin",
"description": "Universal administrator.",
"type": "role"
},
{
"id": "anonymous",
"description": "Anonymous user.",
"type": "role"
},
{
"id": "user",
"description": "Authenticated user.",
"type": "role"
},
{
"id": "all",
"description": "All users.",
"type": "group"
}
]Authentication is required and access is limited to admins.
NONE
NONE
NONE
Successful responses are code 200 with data in the response body. Error responses are standard.
The response body is an Array of Role objects.
| Name | Description | Value |
|---|---|---|
| id | the identifier for the role | string |
| description | the description of the role | string |
| type | the type of the role | one of:
|