List all roles with collections count.
Only superadmins can access this endpoint.
Args: current_user: Authenticated superadmin user. session: Database session.
Returns: List of all roles with collections count.
cURL
curl --request GET \ --url https://api.example.com/api/v1/roles
{ "items": [ { "id": 123, "name": "<string>", "collections_count": 123, "description": "<string>" } ], "total": 123 }
Successful Response
Response schema for listing roles.
Attributes: items: List of roles. total: Total number of roles.
Show child attributes