Role
GET endpoint for /admin/permissions/role/:role in shared category
Overview
- Method: GET
- Path:
/admin/permissions/role/\{role\} - Tags: shared
Parameters
role (path)
- Type:
string - Required: Yes
- Description: role parameter
Request Body
No request body required.
Responses
200
Successful response
Content Type: application/json
{
"type": "object",
"properties": {
"data": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"required": [
"data",
"name",
"created_at",
"updated_at"
]
}400
Bad Request
Content Type: application/json
{
"type": "object",
"properties": {
"error": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object"
}
}
},
"required": [
"error",
"details"
]
}401
Unauthorized
404
Not Found
500
Internal Server Error
Example Usage
curl -X GET \
http://localhost:9000/admin/permissions/role/{role} \
-H "Content-Type: application/json" \
Interactive Testing
You can test this endpoint interactively in the Swagger UI (opens in a new tab).