-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathclient.http
More file actions
39 lines (34 loc) · 792 Bytes
/
client.http
File metadata and controls
39 lines (34 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@host = http://localhost:8888
# @host = http://localhost:8080
###
GET {{host}}/api/product/v1/api/item-types HTTP/1.1
content-type: application/json
###
GET {{host}}/api/product/v1/api/items-by-types/1,2,3 HTTP/1.1
content-type: application/json
###
POST {{host}}/api/counter/v1/api/orders HTTP/1.1
content-type: application/json
{
"commandType": 0,
"orderSource": 0,
"location": 0,
"loyaltyMemberId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"baristaItems": [
{
"itemType": {{$randomInt 0 5}}
},
{
"itemType": {{$randomInt 0 5}}
}
],
"kitchenItems": [
{
"itemType": {{$randomInt 6 9}}
}
],
"timestamp": "2022-07-04T11:38:00.210Z"
}
###
GET {{host}}/api/counter/v1/api/fulfillment-orders HTTP/1.1
content-type: application/json