Get Role
Get role details by ID.
Quick Navigation
Endpoint
GET /api/v1/roles/{role_id}
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <access_token> |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
role_id | integer | Yes | Role ID |
Response
Success (200)
{
"success": true,
"data": {
"role": {
"id": 1,
"name": "Admin",
"permissions": ["*"],
"created_at": "2024-01-01T00:00:00Z",
"assignment_history": []
},
"message": "Role details retrieved successfully"
},
"message": "Role details retrieved successfully"
}
Features
- Role information
- Permission details
- Assignment history
Status
[WARNING] TODO: Not Implemented
This endpoint is defined in the router but the implementation logic is not yet complete.