rbac_permissions_list
GET/rbac/permissions/
Read-only list of all permissions, filterable by model and app
Request
Query Parameters
codename string
content_type__app_label string
content_type__model string
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.
role string
search string
A search term.
user integer
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
name stringrequired
Possible values: <= 255 characters
codename stringrequired
Possible values: <= 100 characters
model Python model class name (string)required
app_label stringrequired
app_label_verbose stringrequired
Human-readable app label
model_verbose stringrequired
Human-readable model name
{
"pagination": {
"next": 0,
"previous": 0,
"count": 0,
"current": 0,
"total_pages": 0,
"start_index": 0,
"end_index": 0
},
"results": [
{
"id": 0,
"name": "string",
"codename": "string",
"model": "string",
"app_label": "string",
"app_label_verbose": "string",
"model_verbose": "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...