rbac_permissions_roles_list
GET/rbac/permissions/roles/
Get a role's assigned object permissions
Request
Query Parameters
ordering string
Which field to use when ordering the results.
page integer
A page number within the paginated result set.
page_size integer
Number of results to return per page.
search string
A search term.
uuid uuidrequired
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
pagination
object
required
next numberrequired
previous numberrequired
count numberrequired
current numberrequired
total_pages numberrequired
start_index numberrequired
end_index numberrequired
results
object[]
required
id integerrequired
codename stringrequired
model Python model class name (string)required
app_label stringrequired
object_pk Object ID (string)required
name stringrequired
app_label_verbose stringrequired
Get app label from permission's model
model_verbose stringrequired
Get model label from permission's model
object_description stringnullablerequired
Get model description from attached model. This operation takes at least one additional query, and the description is only shown if the user/role has the view_ permission on the object
{
"pagination": {
"next": 0,
"previous": 0,
"count": 0,
"current": 0,
"total_pages": 0,
"start_index": 0,
"end_index": 0
},
"results": [
{
"id": 0,
"codename": "string",
"model": "string",
"app_label": "string",
"object_pk": "string",
"name": "string",
"app_label_verbose": "string",
"model_verbose": "string",
"object_description": "string"
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
non_field_errors string[]
code string
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
Loading...