pytest
python manage.py runserver
Get All Books http://127.0.0.1:8000/api/books/
Retrieve a specific book http://127.0.0.1:8000/api/books/{id}/
Make A New Book http://127.0.0.1:8000/api/books
Request Body (JSON):
{
"title": "New Book 2",
"author": "Author Name",
"isbn": "1234567890113",
"published_date": "2024-01-01"
}
Update a book http://127.0.0.1:8000/api/books/{id}/
Request Body (JSON):
{
"title": "Updated Title",
"author": "Updated Author",
"isbn": "1234567330123",
"published_date": "2024-01-01"
}
Partially Update A Book http://127.0.0.1:8000/api/books/{id}/
Request Body (JSON):
{
"title": "Partially Updated"
}
Delete a book http://127.0.0.1:8000/api/books/{id}/