-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdescribe-role.StatusCodes.json
More file actions
1 lines (1 loc) · 1.04 KB
/
describe-role.StatusCodes.json
File metadata and controls
1 lines (1 loc) · 1.04 KB
1
{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","description":"Role description response.","properties":{"role":{"type":"object","description":"Role details with assigned permissions.","properties":{"name":{"type":"string","description":"Role name."},"description":{"type":"string","description":"Role description."},"isPredefined":{"type":"boolean","description":"Whether the role is predefined by the system."},"permissions":{"type":"array","items":{"type":"string"},"description":"List of permission names assigned to the role."}},"title":"RoleDto"}},"title":"DescribeRoleResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"required":["message"],"type":"object","properties":{"message":{"type":"string"}},"title":"ErrorResponse"}}}},"403":{"description":"Operation not allowed"},"404":{"description":"Role not found","content":{"application/json":{"schema":{"required":["message"],"type":"object","properties":{"message":{"type":"string"}},"title":"ErrorResponse"}}}}}}