This project is part of this tutorial how to implement a simple Todo REST API with Django, Django REST Framework and OAuth2.
curl -X POST -d 'username=jpzk&password=yourguess' \ http://localhost:8000/register/
curl -X POST -d \
'username=jpzk&password=yourguess&grant_type=password&client_id=jpzk' \
http://localhost:8000/oauth2/access_token/
{"access_token": "41b59e8238bb418c1fc98cfc6f523dd1a7839a03", "token_type":
"Bearer", "expires_in": 2591999, "scope": "read"}
curl -X POST -H 'Content-Type: application/json' -H 'Authorization: bearer \
41b59e8238bb418c1fc98cfc6f523dd1a7839a03' -d '{"description":"bake a bread"}' \
http://localhost:8000/todos/
curl -X GET -H 'Content-Type: application/json' \ -H 'Authorization: bearer 41b59e8238bb418c1fc98cfc6f523dd1a7839a03' \ http://localhost:8000/todos/
curl -X PUT -H 'Content-Type: application/json' \
-H 'Authorization: bearer 41b59e8238bb418c1fc98cfc6f523dd1a7839a03' \
-d '{"description":"bake a bread", "done":"True"}' \
http://localhost:8000/todos/1