☑Kizspy.me
Input: JSON containing userld, books (array of bookld and quantity).
•
Output: Returns the newly created borrow record.
Sample Input/Output: (Give the test data in SampleTest.json, in the given folder)
POST
http://localhost.999/api/bonowRecords/create
Send
Query
Headers 2
Auth Body' Tests
Pre Rus
ISON XML Test Form Form-encode GraphQL Binary
Status: 201 Created Size: 296 Bytes Time: 12 ms
Response
I
(
Headers Cookes
Results Docs
"userid": "67c011d38cc079c8f7c274ca".
"books": [
"bookId": "67c1db38fe86d6caa15,
"quantity": 2,
"id": "67c0558d8fe986d0086caa32"
3
ISON Content
1
4
Format
{
6
6
7
"userId": "67c011d38cc979c8f7c274ca",
"books": [
{
"bookId": "67c01db38f098600086caa15",
"quantity": 2
7
9
(
10
11
12
13
}
"bookId": "67c01dba8fe986de86ca17",
"quantity": 2
14
].
15
16
32
1
17
23
}
18
}
Zoom
"bookId": "67c01dba8fe58d6caa17",
"quantity": 2,
"Id": "67c0558d8fe98600086caa33"
id": "67ce558d0fe986d8006caa1",
"borrowDate": "2025-02-27T12:07:41.4952",
1
Response
The newly created borrow Record is inserted into the orders collection in the
database:
_id: ObjectId('67c8558d8fe986d0086caa31')
wearTd: hinc+ Id/ccc97c8f7c774ca!)
+ 80%
Close