Create a RESTful API for a bookstore. IMPORTANT: ● Bronze Level must be entirely completed. Requirements: Bronze level: Create a service for the bookstore.
- It should be able to create, read, update and delete resources.
- Service 1: Inventory. 2.1. Book author (first name and last name). 2.2. Book title. 2.3. Book stock in inventory.
- Create two unit tests.
- Create a public repo on github and upload your solution.
- Create a README file, copy and paste this text (challenge description).
Available Scripts
In the project directory, you can run the server:
py manage.py runserver
And it will run on 127.0.0.1:8000
You will get to see two urls for test:
http://127.0.0.1:8000/books/
http://127.0.0.1:8000/authors/
In the project directory, you can test by running:
py manage.py test
You can find the test code in bookapp/tests.py