forked from thangchung/go-coffeeshop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
client.http
35 lines (30 loc) · 712 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
@host = http://localhost:5000
###
GET {{host}}/api/v2/item-types HTTP/1.1
content-type: application/json
###
GET {{host}}/api/v2/items-by-types/COFFEE_WITH_ROOM,MUFFIN,COFFEE_BLACK,CROISSANT_CHOCOLATE HTTP/1.1
content-type: application/json
###
GET {{host}}/api/v2/fulfillment-orders HTTP/1.1
content-type: application/json
###
POST {{host}}/api/v2/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}}
}
],
"kitchenItems": [
{
"itemType": {{$randomInt 6 9}}
}
],
"timestamp": "2022-07-04T11:38:00.210Z"
}