-
Notifications
You must be signed in to change notification settings - Fork 0
/
rest-api.http
59 lines (52 loc) · 1.07 KB
/
rest-api.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
GET http://localhost:8080/orders
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
###
POST http://localhost:8080/orders
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
{
"@type": "pharmacy",
"paymentMethod": "CASH",
"rewardCardNumber": "BBB999AAA",
"buyer": {
"name": "Test Pharmacy Buyer",
"email": "test.buyer@gerapex",
"phoneNumber": "+1-202-555-0146",
"address": "672 Desota Pl, Pontiac, MI, 48342"
},
"items": [
{
"name": "Distilled water",
"quantity": 0.5,
"unit": "litre"
}
]
}
###
POST http://localhost:8080/orders
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
{
"@type": "food-delivery",
"paymentMethod": "CASH",
"couponCode": "123-456-789",
"buyer": {
"name": "Food Buyer",
"email": "food.buyer@gerapex",
"phoneNumber": "(937) 843-4192",
"address": "14612 Harvard St, Dolton, IL, 60419"
},
"items": [
{
"name": "Hawaii Pizza 32cm",
"quantity": 1,
"unit": "pc",
"comment": "Without Ananas"
}
]
}
###