-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprueba.http
121 lines (96 loc) · 3.1 KB
/
prueba.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
curl -X GET http://localhost:8070/events/name/opera%20juana
curl -X GET http://localhost/events
curl -X GET http://localhost/events/id/60e6515a4227c400011f0319
curl -X GET http://localhost/books/events
curl -X GET http://localhost:8071/books/events/name/opera%20juana
curl -X GET http://localhost:8071/books/events/id/60d28ba36efb600001647b75
curl -X POST http://localhost/events
-d '{
"name": "opera rigoletto",
"startdate": 40987943,
"enddate": 43988943,
"duration": 120,
"location": {
"name": "West Street Opera House",
"address": "11 west street, AZ 73646",
"country": "USA",
"opentime": 7,
"closetime": 20,
"halls": [
{
"name": "Cesar Hall",
"location": "second floor, room 2210",
"capacity": 10
},
{
"name": "Caligula Hall",
"location": "second floor, room 2110",
"capacity": 20
}
]
}
}'
curl -X GET http://localhost:30328/events
curl -X GET http://localhost:30328/events/name/opera%20rigolleto
curl -X GET http://localhost:30328/events/id/60ae967b218e9c0001864b13
curl -X POST http://localhost:30328/events
-d '{
"name": "opera rigolleto",
"startdate": 40987943,
"enddate": 43988943,
"duration": 120,
"location": {
"name": "West Street Opera House",
"address": "11 west street, AZ 73646",
"country": "USA",
"opentime": 7,
"closetime": 20,
"halls": [
{
"name": "Cesar Hall",
"location": "second floor, room 2210",
"capacity": 10
},
{
"name": "Caligula Hall",
"location": "second floor, room 2110",
"capacity": 20
}
]
}
}'
curl -X GET http://localhost:30043/books/events
curl -X GET http://localhost:30043/books/events/name/opera%20rigolleto
curl -X GET http://localhost:30043/books/events/id/60ae967b218e9c0001864b13
curl -X GET http://52.11.143.232:8070/events
curl -X GET http://52.11.143.232:8070/events/name/opera%20rigolleto
curl -X GET http://52.11.143.232:8070/events/id/60b508d7ce01440cb0cff16d
curl -X GET http://52.11.143.232:8071/books/events
curl -X GET http://52.11.143.232:8071/books/events/name/opera%20rigolleto
curl -X GET http://52.11.143.232:8071/books/events/id/61076208c992cb0ba686c184
curl -X POST http://52.11.143.232:8070/events
-d '{
"name": "opera rigolleto",
"startdate": 40987943,
"enddate": 43988943,
"duration": 120,
"location": {
"name": "West Street Opera House",
"address": "11 west street, AZ 73646",
"country": "USA",
"opentime": 7,
"closetime": 20,
"halls": [
{
"name": "Cesar Hall",
"location": "second floor, room 2210",
"capacity": 10
},
{
"name": "Caligula Hall",
"location": "second floor, room 2110",
"capacity": 20
}
]
}
}'