Myaccount
Dedicated my account json response
Token-based authentication with required prefix "Token"
Number of results to return per page.
The initial index from which to return the results.
Which field to use when ordering the results.
A search term.
123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100GET /myaccount/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"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,
"username": "text",
"email": "name@gmail.com",
"first_name": "text",
"last_name": "text",
"is_superuser": true,
"groups": [
1
],
"group_assignments": "text",
"user_permissions": [
1
]
}
]
}This class will define the view behavior
Token-based authentication with required prefix "Token"
A unique integer value identifying this user.
This serialize class provide the API representation
Args: serializers ([ModelSerializer])
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
^[\w.@+-]+$Designates that this user has all permissions without explicitly assigning them.
The groups this user belongs to. A user will get all permissions granted to each of their groups.
Specific permissions for this user.
GET /myaccount/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"username": "text",
"email": "name@gmail.com",
"first_name": "text",
"last_name": "text",
"is_superuser": true,
"groups": [
1
],
"group_assignments": "text",
"user_permissions": [
1
]
}This class will define the view behavior
Token-based authentication with required prefix "Token"
A unique integer value identifying this user.
This serialize class provide the API representation
Args: serializers ([ModelSerializer])
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
^[\w.@+-]+$Designates that this user has all permissions without explicitly assigning them.
The groups this user belongs to. A user will get all permissions granted to each of their groups.
Specific permissions for this user.
This serialize class provide the API representation
Args: serializers ([ModelSerializer])
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
^[\w.@+-]+$Designates that this user has all permissions without explicitly assigning them.
The groups this user belongs to. A user will get all permissions granted to each of their groups.
Specific permissions for this user.
PATCH /myaccount/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 101
"username='text'&email='name@gmail.com'&first_name='text'&last_name='text'&password='text'"{
"id": 1,
"username": "text",
"email": "name@gmail.com",
"first_name": "text",
"last_name": "text",
"is_superuser": true,
"groups": [
1
],
"group_assignments": "text",
"user_permissions": [
1
]
}Last updated

