Skip to content

Commit fb5fc66

Browse files
Copilotsinedied
andcommitted
Add example request with nickname in api.http
Co-authored-by: sinedied <[email protected]>
1 parent e2b248c commit fb5fc66

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

packages/burger-api/api.http

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,21 @@ Content-Type: application/json
8080
]
8181
}
8282

83+
### Create a new order with nickname
84+
POST {{api_host}}/api/orders
85+
Content-Type: application/json
86+
87+
{
88+
"userId": "user123",
89+
"nickname": "Alice",
90+
"items": [
91+
{
92+
"burgerId": "1",
93+
"quantity": 2
94+
}
95+
]
96+
}
97+
8398
### Delete/cancel an order
8499
DELETE {{api_host}}/api/orders/12345?userId=user123
85100

0 commit comments

Comments
 (0)