Fou response.
When a book is deleted, the API must return the message, the number of book copies (BookCopies) and borrowing transactions (Borrow Transactions) associated with the deleted book.
Example response:
{
"message": "Book deleted successfully",
"deletedCopies": 5,
"deleted Transactions": 3
}
URL: DELETE/api/books/{bookld}
Request URL
http://localhost:5000/api/Books/2
Server response
Code
Details
200
Response body
{
"message": "Book deleted successfully",
"deletedCopies": 3,
"deleted Transactions": 1
}
Zoom
Figure 5-The API to delete one book.
+ 100%
Close