Permissions
get
This class will define the view behavior
Args: viewsets ([ModelViewSet])
Authorizations
AuthorizationstringRequired
Token-based authentication with required prefix "Token"
Query parameters
formatstring · enumOptionalPossible values:
limitintegerOptional
Number of results to return per page.
offsetintegerOptional
The initial index from which to return the results.
Responses
200Success
countintegerRequiredExample:
123nextstring · uri · nullableOptionalExample:
http://api.example.org/accounts/?offset=400&limit=100previousstring · uri · nullableOptionalExample:
http://api.example.org/accounts/?offset=200&limit=100get/permissions/
GET /permissions/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"id": 1,
"name": "text",
"content_type": 1,
"codename": "text"
}
]
}get
This class will define the view behavior
Args: viewsets ([ModelViewSet])
Authorizations
AuthorizationstringRequired
Token-based authentication with required prefix "Token"
Path parameters
idintegerRequired
A unique integer value identifying this permission.
Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success
This serialize class provide the API representation
idintegerRead-onlyRequired
namestring · max: 255Required
content_typeintegerRequired
codenamestring · max: 100Required
get/permissions/{id}/
GET /permissions/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
"id": 1,
"name": "text",
"content_type": 1,
"codename": "text"
}Last updated

