Skip to content

Instantly share code, notes, and snippets.

@NekoTashi
Created November 13, 2015 03:53
Show Gist options
  • Select an option

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

Select an option

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

Login

POST

/api/api-token-auth/

{
    "username": "foo",
    "password": "bar"
}
curl -v -X POST http://localhost:8000/api/api-token-auth/ \
    -H 'Content-type: application/json' \
    -d '{"username":"foo","password":"bar"}' \
    | python -m json.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment