Post API v1 role
Changed onpost/api/v1/role/
Request
- The document declares no server URL.
- Auth: HTTP bearer
Request body
Example request
{
"$schema": "https://example.com/schemas/CreateRoleRequest.json",
"name": "moderator",
"permissions": [
{
"action": "create",
"resource": "sport"
}
]
}Response
OK
Example response
{
"$schema": "https://example.com/schemas/RoleResponse.json",
"id": "1",
"name": "admin",
"permissions": [
{
"$schema": "https://example.com/schemas/PermissionResponse.json",
"action": "create",
"id": "1",
"resource": "user"
}
]
}Changes
- ○
endpoint added
- ○