Get Roles: /role/ (GET)
Purpose:
Get all roles and their permissions.
Input:
- Headers:
- Client-Secret: (Optional) A header to authenticate the request.
- Authorization: The JWT token of the user.
Output (200):
[
{
"id": "35fdd3ed-fab1-4b56-9795-c98d167482d2",
"name": "Administrator",
"administrator": true,
"manage_users": true,
"manage_channels": true,
"manage_roles": true
},
{
"id": "3b97f229-4231-49e2-a657-9358c35caf6a",
"name": "User",
"administrator": false,
"manage_users": false,
"manage_channels": false,
"manage_roles": false
}
]