#install django and django rest framework pip install django
pip install djangorestframework
#start server python manage.py runserver
http://127.0.0.1:8000/ to browse json apis
http://127.0.0.1:8000/questions/
http://127.0.0.1:8000/questions/?format=json
http://127.0.0.1:8000/admin for the admin site. could login by dmin/admin
generate token:
http http://127.0.0.1:8000/api-token-auth/ username=admin password=admin
access api via token:
http http://127.0.0.1:8000/users/ "Authorization:Token 8b1a7e57673fec4109324237dacfa13a2c4b5272"
the generated token will be expired after 1 minutes.
could access the browserable api at: