192.168.0.28
POST
http://localhost:8000/api/api-token-auth/
{
"username": "example",
"password": "example123"
}
curl -v -X POST http://localhost:8000/api/api-token-auth/ \
-H 'Content-type: application/json' \
-d '{"username":"nekotashi2","password":"nekotashi"}' \
| python -m json.tool
GET
http://localhost:8000/api/users/
POST
Crear usuario
http://localhost:8000/api/users/
{
"username": "example",
"password":"example",
"email":"foo@bar.com"
}
curl -v -X POST http://localhost:8000/api/users/ \
-H 'Content-type: application/json' \
-d '{"username":"nekotashi2","password":"nekotashi","email":"foo@bar.com"}' \
| python -m json.tool
PATCH (UPDATE)
http://localhost:8000/api/users/
DELETE
http://localhost:8000/api/users/