-
Notifications
You must be signed in to change notification settings - Fork 21
/
client.http
40 lines (35 loc) · 884 Bytes
/
client.http
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
40
@host = http://localhost:8080
# config: https://github.com/thangchung/coffeeshop-on-nomad/wiki/Know-how
# @host = http://nomadvn.eastus.cloudapp.azure.com
###
GET {{host}}/product-api/v1/api/item-types HTTP/1.1
content-type: application/json
###
GET {{host}}/product-api/v1/api/items-by-types/1,2,3 HTTP/1.1
content-type: application/json
###
GET {{host}}/counter-api/v1/api/fulfillment-orders HTTP/1.1
content-type: application/json
###
POST {{host}}/counter-api/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"
}