/
Wanderlust_OpenTravelAPI_Postman_collection.json
258 lines (258 loc) · 11.7 KB
/
Wanderlust_OpenTravelAPI_Postman_collection.json
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
{
"id": "6716d271-5ee4-67bc-3488-06aafe792ba3",
"name": "Wanderlust Open Travel API",
"description": "Wanderlust Open Travel API",
"order": [
"6719b47f-c3b5-9b42-eb26-039121c12391",
"8aa83416-b3a6-835b-ab4f-56c7e4e07a85",
"d733f527-e17f-bfaf-9b0e-fe4fc80a90ae",
"3c7912c0-1070-80ba-7b59-65493396123c",
"a493e16b-4a08-090c-1294-59434d2b4d65",
"cc1e4ffe-75a1-23d5-737e-303ba5ad2a71",
"bbd2bca3-9869-1615-6224-c4b618d000e9",
"85f5dc9d-578a-9d5b-4dc6-0cf032fd552c",
"89819300-d670-f7b6-94ef-34e0ce62646b",
"c79c1098-cc96-a890-6ec4-c07136d23301",
"8aded8bd-b70a-0dab-7fe3-4845c87eb094",
"9d70d04b-e8cf-2fb3-7078-8b58304559d4"
],
"folders": [],
"timestamp": 1470594233899,
"owner": "498603",
"public": false,
"published": false,
"requests": [
{
"id": "3c7912c0-1070-80ba-7b59-65493396123c",
"headers": "",
"url": "http://localhost:9000/api/opentravel/destinations/1",
"preRequestScript": null,
"pathVariables": {},
"method": "DELETE",
"data": null,
"dataMode": "params",
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"time": 1475414354936,
"name": "Delete Destination",
"description": "$ curl -X DELETE http://localhost:9000/api/opentravel/destinations/2",
"collectionId": "6716d271-5ee4-67bc-3488-06aafe792ba3"
},
{
"id": "6719b47f-c3b5-9b42-eb26-039121c12391",
"headers": "",
"url": "http://localhost:9000/api/opentravel/destinations",
"preRequestScript": null,
"pathVariables": {},
"method": "GET",
"data": null,
"dataMode": "params",
"version": 2,
"tests": null,
"currentHelper": "normal",
"helperAttributes": "{}",
"time": 1470594505465,
"name": "Search Destinations",
"description": "",
"collectionId": "6716d271-5ee4-67bc-3488-06aafe792ba3",
"responses": [],
"folder": null,
"rawModeData": null,
"descriptionFormat": "html"
},
{
"id": "85f5dc9d-578a-9d5b-4dc6-0cf032fd552c",
"headers": "Content-Type: application/json\n",
"url": "http://localhost:9000/api/opentravel/holidays",
"preRequestScript": null,
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"time": 1474672503454,
"name": "Create Holiday ",
"description": "",
"collectionId": "6716d271-5ee4-67bc-3488-06aafe792ba3",
"responses": [],
"rawModeData": "{\n \"flightIncluded\": true,\n \"accomodationIncluded\": true,\n \"destination\": \"http://localhost:9000/api/opentravel/destinations/2\",\n \"startOn\": \"2016-10-17\",\n \"daysCount\": 15,\n \"departFrom\": \"Eindhoven Airport\",\n \"price\": 500,\n \"packageInfo\": \"Group Travel 'On a shoe string'\"\n}"
},
{
"id": "89819300-d670-f7b6-94ef-34e0ce62646b",
"headers": "",
"url": "http://localhost:9000/api/opentravel/holidays/1",
"preRequestScript": null,
"pathVariables": {},
"method": "DELETE",
"data": null,
"dataMode": "params",
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"time": 1475414270428,
"name": "Delete Holiday",
"description": "",
"collectionId": "6716d271-5ee4-67bc-3488-06aafe792ba3"
},
{
"id": "8aa83416-b3a6-835b-ab4f-56c7e4e07a85",
"headers": "",
"url": "http://localhost:9000/api/opentravel/destinations/search/findByCountry?country=Japan",
"preRequestScript": null,
"pathVariables": {},
"method": "GET",
"data": null,
"dataMode": "params",
"version": 2,
"tests": null,
"currentHelper": "normal",
"helperAttributes": "{}",
"time": 1470594721000,
"name": "Find Destination By Country",
"description": "",
"collectionId": "6716d271-5ee4-67bc-3488-06aafe792ba3",
"responses": [],
"folder": null,
"rawModeData": null,
"descriptionFormat": "html"
},
{
"id": "8aded8bd-b70a-0dab-7fe3-4845c87eb094",
"headers": "Content-Type: application/json\n",
"url": "http://localhost:9000/api/opentravel/agents",
"preRequestScript": null,
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"time": 1475428460753,
"name": "Create Agent",
"description": "",
"collectionId": "6716d271-5ee4-67bc-3488-06aafe792ba3",
"responses": [],
"rawModeData": "{\n \"name\": \"WIZZ Tours\",\n \"country\": \"GB\",\n \"city\": \"London\",\n \"postalCode\": \"AB10 1AA\",\n \"email\": \"info@wizztours.com\",\n \"phone\": \"+44 333 155 4997\",\n \"website\": \"https://wizztours.com\",\n \"holidays\": [\"http://localhost:9000/api/opentravel/holidays/1\"]\n}"
},
{
"id": "9d70d04b-e8cf-2fb3-7078-8b58304559d4",
"headers": "",
"url": "http://localhost:9000/api/opentravel/agents/1",
"preRequestScript": null,
"pathVariables": {},
"method": "DELETE",
"data": null,
"dataMode": "params",
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"time": 1475414410912,
"name": "Delete Agent",
"description": "",
"collectionId": "6716d271-5ee4-67bc-3488-06aafe792ba3"
},
{
"id": "a493e16b-4a08-090c-1294-59434d2b4d65",
"headers": "Content-Type: application/json\n",
"url": "http://localhost:9000/api/opentravel/destinations/2",
"preRequestScript": null,
"pathVariables": {},
"method": "PUT",
"data": [],
"dataMode": "raw",
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"time": 1474672280569,
"name": "Replace Destination ",
"description": "",
"collectionId": "6716d271-5ee4-67bc-3488-06aafe792ba3",
"rawModeData": "{ \n \"name\" : \"Transylvania Mountain thrills\", \n \"country\": \"RO\", \n \"facts\": [\n \"The path from Buckingham Palace to Braşov might not seem immediately apparent, but Prince Charles supports a number of conservation projects in Transylvania. The UK royal has even planted a wildflower meadow at England’s Highgrove Gardens to remind him of the Transylvanian countryside.\",\n \"Transylvania features as Lonelyplanet #1 Region to travel to in 2016: http://www.lonelyplanet.com/best-in-travel/regions/1\"\n ],\n \"description\" : \"Go hiking, visit salina's, swim in mountain lakes\"\n}"
},
{
"id": "bbd2bca3-9869-1615-6224-c4b618d000e9",
"headers": "",
"url": "http://localhost:9000/api/opentravel/holidays",
"pathVariables": {},
"preRequestScript": null,
"method": "GET",
"collectionId": "6716d271-5ee4-67bc-3488-06aafe792ba3",
"data": null,
"dataMode": "params",
"name": "Search Holidays",
"description": "HAL Search Holidays",
"descriptionFormat": "html",
"time": 1470594700013,
"version": 2,
"responses": [],
"tests": null,
"currentHelper": "normal",
"helperAttributes": "{}",
"folder": null,
"rawModeData": null
},
{
"id": "c79c1098-cc96-a890-6ec4-c07136d23301",
"headers": "",
"url": "http://localhost:9000/api/opentravel/agents",
"preRequestScript": null,
"pathVariables": {},
"method": "GET",
"data": null,
"dataMode": "params",
"version": 2,
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"time": 1474672662767,
"name": "Search Agents",
"description": "",
"collectionId": "6716d271-5ee4-67bc-3488-06aafe792ba3",
"responses": []
},
{
"id": "cc1e4ffe-75a1-23d5-737e-303ba5ad2a71",
"headers": "Content-Type: application/json\n",
"url": "http://localhost:9000/api/opentravel/destinations/2",
"preRequestScript": null,
"pathVariables": {},
"method": "PATCH",
"data": [],
"dataMode": "raw",
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"time": 1474672748823,
"name": "Update Destination",
"description": "",
"collectionId": "6716d271-5ee4-67bc-3488-06aafe792ba3",
"rawModeData": "{ \n \"name\" : \"Transylvania\", \n \"country\": \"RO\", \n \"facts\": [\n \"The path from Buckingham Palace to Braşov might not seem immediately apparent, but Prince Charles supports a number of conservation projects in Transylvania. The UK royal has even planted a wildflower meadow at England’s Highgrove Gardens to remind him of the Transylvanian countryside.\",\n \"Transylvania features as Lonelyplanet #1 Region to travel to in 2016: http://www.lonelyplanet.com/best-in-travel/regions/1\",\n \"It may not be flanked by epic mountains or be as instantly arresting as Braşov or Sibiu, but Cluj is big on charm and in no time you'll be infected by it. Film capital of Romania, the city is bursting with students and cineastes; in fact its Transylvania International Film Festival, held each year in the last week of May, attracts plenty of international talent, while the Transilvania Jazz Festival, held in October, is another cultural highlight.\"\n ],\n \"description\" : \"Mountain thrills, hospitable people, edgy art and bohemian cafes in Vlad's former home\" \n}"
},
{
"id": "d733f527-e17f-bfaf-9b0e-fe4fc80a90ae",
"headers": "Content-Type: application/json\n",
"url": "http://localhost:9000/api/opentravel/destinations",
"preRequestScript": null,
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"time": 1475425979855,
"name": "Create Destination",
"description": "curl -i -X POST -H \"Content-Type:application/json\" -d '{ \n \"name\" : \"Transylvania\", \n \"country\": \"RO\", \n \"facts\": [\n \"Transylvania features as Lonelyplanet #1 Region to travel to in 2016: http://www.lonelyplanet.com/best-in-travel/regions/1\",\n \"The path from Buckingham Palace to Braşov might not seem immediately apparent, but Prince Charles supports a number of conservation projects in Transylvania. The UK royal has even planted a wildflower meadow at England’s Highgrove Gardens to remind him of the Transylvanian countryside.\"\n ],\n \"description\" : \"Mountain thrills and edgy art in Vlad's former home\" \n}' \n\n-i ensures you can see the response message including the headers. The URI of the newly created Destination is shown\n-X POST signals this a POST used to create a new entry\n-H \"Content-Type:application/json\" sets the content type so the application knows the payload contains a JSON object\n-d the data being sent",
"collectionId": "6716d271-5ee4-67bc-3488-06aafe792ba3",
"responses": [],
"rawModeData": "{ \n \"name\" : \"Transylvania\", \n \"country\": \"RO\", \n \"facts\": [\n \"Transylvania features as Lonelyplanet #1 Region to travel to in 2016: http://www.lonelyplanet.com/best-in-travel/regions/1\",\n \"The path from Buckingham Palace to Braşov might not seem immediately apparent, but Prince Charles supports a number of conservation projects in Transylvania. The UK royal has even planted a wildflower meadow at England’s Highgrove Gardens to remind him of the Transylvanian countryside.\"\n ],\n \"description\" : \"Mountain thrills and edgy art in Vlad's former home\" \n}"
}
]
}