To get started download the project git clone https://github.com/medoedoff/restapi.git
After go to the project directory cd directory/where/project/downloaded/restapi-master
Install requirement packages for work (you shoud have python3 and pip) pip install requirements.txt
Run django server nohup python3 manage.py runserver &
curl localhost:8000/library/
-All books in Library
curl localhost:8000/library/1/
-Detail book in Library
curl -u satori:satori -d author=TestAuthor localhost:8000/library/
curl -u satori:satori -X PUT -d author=TestUserChanged http://localhost:8000/library/4/
curl -u satori:satori -X DELETE localhost:8000/library/4/
You have only 10 requests per 1 minute, to change it, go to djapi/settings.py file, on line 121 find DEFAULT_THROTTLE_RATES, below you will see 'anon':10/m
and user:10/m
. Anon - not authenticated, User - authenticated. 10 - means how much request anon or user will have, m - means per minute. You can change it how it will comfortable for you.
P.S Sorry for my English :)