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
}
Figure 5-The API to delete one book.
Question 2
You are tasked with building a web application (using MVC or RazorPages model) that interacts with a set of pre-existing APIs to manage a library's collection of books and their associated authors. The APIs are running on port 5100, and your job is to create a front-end web application that provides the below functionality.
General Requirements
The application must use HttpClient to communicate with the APIs.
Zoom
The API server is running on port 5100.
+ 100%
Close