POST https://api.traffy.xyz/api-auth/registration/
{"username": "x", "password1": "", "password2": "", "email": "x@foo.bar" }
POST https://api.traffy.xyz/api-token-auth/
{"username": "x", "password": ""}
POST https://api.traffy.xyz/api-token-social-auth/facebook/
{"access_token": "ยาวๆๆๆๆ"}
{
"username": "sipp11",
"token": "exxxxxxxx*********E",
"id": 1,
"success": true
}
PATCH /private/user/<user_id>/ -d '{"groups": [{"name": "admin"}, {"name": "patong"}]}'
PATCH /private/user/<user_id>/ -d '{"groups": []}'
Authentication
POST https://api.traffy.xyz/api-auth/registration/
{"username": "x", "password1": "", "password2": "", "email": "x@foo.bar" }
traffy-api own authentication
POST https://api.traffy.xyz/api-token-auth/
{"username": "x", "password": ""}
facebook authentication
POST https://api.traffy.xyz/api-token-social-auth/facebook/
{"access_token": "ยาวๆๆๆๆ"}
{
"username": "sipp11",
"token": "exxxxxxxx*********E",
"id": 1,
"success": true
}
Authorization
PATCH /private/user/<user_id>/ -d '{"groups": [{"name": "admin"}, {"name": "patong"}]}'
PATCH /private/user/<user_id>/ -d '{"groups": []}'