2
{
☑Kizspy.me
5
"_id": "67c01b1994c8ed0232b5a78e",
"title": "Artificial Intelligence: A Guide for Thinking Humans",
"author": "Melanie Mitchell",
6
"price": 25.99,
7
"stock": 10,
8
9
10
"category": {
"_id": "67c007a768161cc4e56fb7fb",
"name": "Artificial Intelligence"
11
}
12
},
13>
{},
24>
35 >
46
(-),
{},
(-)
57
1
Question 2 (1.5 points) - Retrieve Borrow Records by User ID
Description: Develop an API to retrieve all borrow records associated with a specific user
using userld.
API Details
•
.
URI:
http://localhost:9999/api/borrow Records/user/:userld
Method: GET
Output: Returns a list of borrow records belonging to the user, including_id,
borrowDate, and books (with_id, title, author).
Sample Output: with userid="67c011d38cc079c8f7c274ca"
Zoom
+ 80%
Close