-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-calls.http
82 lines (61 loc) · 1.44 KB
/
sample-calls.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
GET http://localhost:8080/actuator/health
###
POST http://localhost:8080/orders
content-type: application/json
accept: application/json
{
"showId":"456765",
"seats":["1A","1B","1C"]
}
<> 2018-08-22T080344.201.json
<> 2018-08-04T071945.201.json
<> 2018-08-04T071021.201.json
###
GET http://localhost:8080/orders/00001
accept: application/json
<> 2018-08-16T014340.200.json
<> 2018-08-04T072022.200.json
<> 2018-08-04T071053.400.json
###
POST http://localhost:8080/payments/accept
content-type: application/json
accept: application/json
{
"orderId":"00001",
"showId":"456765"
}
###
POST http://localhost:8080/seats/reserve
content-type: application/json
accept: application/json
{
"orderId":"00001",
"showId":"456765",
"seats":["1A","1B","1C"]
}
###
POST http://localhost:8080/reservations/00001/complete
accept: application/json
<> 2018-08-08T093105.200.json
###
GET http://localhost:8080/reservations/00001
accept: application/json
<> 2018-08-08T093436.200.json
###
POST http://localhost:8080/orders/sync
content-type: application/json
accept: application/json
{
"showId":"456765",
"status":"pending",
"seats":["1A","1B","1C"]
}
<> 2018-08-21T111438.500.json
<> 2018-08-16T014224.201.json
###
GET http://localhost:8080/orders/counts
accept: application/json
<> 2018-08-22T074526.200.json
<> 2018-08-21T111449.200.json
<> 2018-08-21T111411.200.json
###