Skip to main content

Get Role

Get role details by ID.

Quick Navigation
Outline

Endpoint

GET /api/v1/roles/{role_id}

Headers

HeaderRequiredDescription
AuthorizationYesBearer <access_token>

Path Parameters

ParameterTypeRequiredDescription
role_idintegerYesRole 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.