Skip to content

Instantly share code, notes, and snippets.

@NekoTashi
Last active October 24, 2015 01:23
Show Gist options
  • Select an option

  • Save NekoTashi/f0a50abb8cc9c509e97b to your computer and use it in GitHub Desktop.

Select an option

Save NekoTashi/f0a50abb8cc9c509e97b to your computer and use it in GitHub Desktop.
fock

Delivery Tracking

Urls

192.168.0.28

Login

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

User

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment