SDN302_-_PE_-_SP_2025_-_s_1_3471.webp
Aizawa2004

SDN302_-_PE_-_SP_2025_-_s_1_3471.webp

☑Kizspy.me API Details:
.
URI: http://localhost:9999/api/orders/create
. Method: POST
• Input: JSON containing customerld, products (array of productid and quantity).
⚫ Output: Returns the newly created order details.
Sample Input/Output: (Give the test data in SampleTest.json, in the given folder)
Zoom
POST http://localhost:9999/api/orders/create
Query Headers Auth Body Tests
Pre Run
Send
Status: 201 Created Size: 311 Bytes Time: 42 ms
1
Response
{
Headers 6
Cookies Results
Docs H
JSON XML Text Form Form-encode GraphQL
Binary
3
4
JSON Content
Format
5
6
f
2
"customerId": "67bca5a616951b6b54b79eb5",
7
"products":[
{"productId": "67bc8ff74100471c0d9a4c57", "quantity": 1 },
{"productId": "67bc8ff70100471c0d9a4c58", "quantity": 4 }
8
9
10
"id": "67bf514d77ce2f236c2c1e4a",
"customerId": "67bca5a616951b6b54b794b5",
"orderDate": "2025-02-26T17:37:17.1192",
"products":[
"id": "67bc8ff7d100471c0d9a4c57",
"name": "iPhone 14",
"price":999,
"quantity": 1
6
]
11
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
SDN302
Thêm bởi
Aizawa2004
Ngày thêm
Lượt xem
1,566
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom