-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPSA.postman_collection.json
277 lines (277 loc) · 33.9 KB
/
PSA.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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
{
"info": {
"_postman_id": "149a7033-5f44-42fc-9d0d-74d3aa8c08ee",
"name": "PSA",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "19309925"
},
"item": [
{
"name": "openai_for_get_cities",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"request\": \"/reference-data/locations/cities\",\n \"json\": \"{\\\"openapi\\\":\\\"3.0.0\\\",\\\"info\\\":{\\\"title\\\":\\\"CitySearch\\\",\\\"version\\\":\\\"1.0.1\\\",\\\"description\\\":\\\"BeforeusingtheAPIyouwillneedtogetanaccesstoken.Pleasereadour**[AuthorizationGuide](https://developers.amadeus.com/self-service/apis-docs/guides/authorization-262)**formoreinformationonhowtogetyourtoken.\\\"},\\\"servers\\\":[{\\\"url\\\":\\\"https://test.api.amadeus.com/v1\\\"}],\\\"paths\\\":{\\\"/reference-data/locations/cities\\\":{\\\"get\\\":{\\\"summary\\\":\\\"GETCitiesbykeyword\\\",\\\"tags\\\":[\\\"City\\\"],\\\"operationId\\\":\\\"GETCities\\\",\\\"parameters\\\":[{\\\"schema\\\":{\\\"type\\\":\\\"string\\\",\\\"minLength\\\":2,\\\"maxLength\\\":2},\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"countryCode\\\",\\\"description\\\":\\\"ISO3166Alpha-2code.e.g.\\\\\\\"US\\\\\\\"UnitedStatesofAmerica.\\\",\\\"example\\\":\\\"FR\\\"},{\\\"schema\\\":{\\\"type\\\":\\\"string\\\",\\\"minLength\\\":2,\\\"maxLength\\\":10},\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"keyword\\\",\\\"description\\\":\\\"keywordthatshouldrepresentthestartofawordinacityname.\\\",\\\"example\\\":\\\"PARIS\\\",\\\"required\\\":true},{\\\"schema\\\":{\\\"type\\\":\\\"integer\\\"},\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"max\\\",\\\"description\\\":\\\"Numberofresultsuserwanttoseeinresponse.\\\",\\\"example\\\":10},{\\\"schema\\\":{\\\"type\\\":\\\"array\\\",\\\"items\\\":{\\\"type\\\":\\\"string\\\",\\\"enum\\\":[\\\"AIRPORTS\\\"]}},\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"include\\\",\\\"description\\\":\\\"Resourcestobeincludedexample:Airports\\\",\\\"style\\\":\\\"form\\\",\\\"explode\\\":false}],\\\"responses\\\":{\\\"200\\\":{\\\"description\\\":\\\"SuccessfulReply\\\",\\\"content\\\":{\\\"application/vnd.amadeus+json\\\":{\\\"schema\\\":{\\\"type\\\":\\\"object\\\",\\\"properties\\\":{\\\"warnings\\\":{\\\"type\\\":\\\"array\\\",\\\"items\\\":{\\\"$ref\\\":\\\"#/components/schemas/Warning\\\"}},\\\"meta\\\":{\\\"$ref\\\":\\\"#/components/schemas/Meta\\\"},\\\"data\\\":{\\\"type\\\":\\\"array\\\",\\\"items\\\":{\\\"$ref\\\":\\\"#/components/schemas/Location\\\"}},\\\"included\\\":{\\\"type\\\":\\\"object\\\",\\\"properties\\\":{\\\"airports\\\":{\\\"type\\\":\\\"object\\\",\\\"additionalProperties\\\":{\\\"$ref\\\":\\\"#/components/schemas/Location\\\"}}}}}},\\\"examples\\\":{\\\"example\\\":{\\\"value\\\":{\\\"data\\\":[{\\\"type\\\":\\\"location\\\",\\\"subType\\\":\\\"city\\\",\\\"name\\\":\\\"PARIS\\\",\\\"iataCode\\\":\\\"PAR\\\",\\\"address\\\":{\\\"CountryCode\\\":\\\"FR\\\"},\\\"geoCode\\\":{\\\"latitude\\\":\\\"49.01278\\\",\\\"longitude\\\":\\\"2.55\\\"},\\\"relationships\\\":[{\\\"id\\\":\\\"CDG\\\",\\\"type\\\":\\\"Airport\\\",\\\"href\\\":\\\"#/included/airports/CDG\\\"},{\\\"id\\\":\\\"ORY\\\",\\\"type\\\":\\\"Airport\\\",\\\"href\\\":\\\"#/included/airports/ORY\\\"}]}],\\\"included\\\":{\\\"airports\\\":{\\\"CDG\\\":{\\\"name\\\":\\\"CHARLESDEGAULLE\\\",\\\"iataCode\\\":\\\"CDG\\\",\\\"subType\\\":\\\"Airport\\\"},\\\"ORY\\\":{\\\"name\\\":\\\"ORLY\\\",\\\"iataCode\\\":\\\"ORY\\\",\\\"subType\\\":\\\"Airport\\\"}}},\\\"meta\\\":{\\\"count\\\":\\\"1\\\",\\\"links\\\":{\\\"self\\\":\\\"https://api.amadeus.net/v1/reference-data/locations/cities/keyword=PARIS&CountryCode=FR&include=AIRPORTS\\\"}}}}}}}},\\\"400\\\":{\\\"description\\\":\\\"BadRequest\\\\n\\\\ncode|title\\\\n-------|-------------------------------------\\\\n32171|MANDATORYDATAMISSING\\\\n572|INVALIDOPTION\\\\n2781|INVALIDLENGTH\\\\n477|INVALIDFORMAT\\\\n4926|INVALIDDATARECEIVED\\\\n\\\",\\\"content\\\":{\\\"application/vnd.amadeus+json\\\":{\\\"schema\\\":{\\\"$ref\\\":\\\"#/components/schemas/Error_400\\\"},\\\"examples\\\":{\\\"example-400\\\":{\\\"value\\\":{\\\"errors\\\":[{\\\"status\\\":400,\\\"code\\\":32171,\\\"title\\\":\\\"MANDATORYDATAMISSING\\\",\\\"detail\\\":\\\"Missingmandatoryqueryparameter\\\"}]}}}}}},\\\"500\\\":{\\\"description\\\":\\\"InternalServerError\\\\n\\\\ncode|title\\\\n-------|-------------------------------------\\\\n141|SYSTEMERRORHASOCCURRED\\\",\\\"content\\\":{\\\"application/vnd.amadeus+json\\\":{\\\"schema\\\":{\\\"$ref\\\":\\\"#/components/schemas/Error_500\\\"},\\\"examples\\\":{\\\"example-500\\\":{\\\"value\\\":{\\\"errors\\\":[{\\\"status\\\":500,\\\"code\\\":141,\\\"title\\\":\\\"SYSTEMERRORHASOCCURRED\\\"}]}}}}}}},\\\"description\\\":\\\"\\\"}}},\\\"components\\\":{\\\"schemas\\\":{\\\"Location\\\":{\\\"title\\\":\\\"Location\\\",\\\"allOf\\\":[{\\\"type\\\":\\\"object\\\",\\\"properties\\\":{\\\"type\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"ResourceType\\\"},\\\"relationships\\\":{\\\"type\\\":\\\"array\\\",\\\"items\\\":{\\\"description\\\":\\\"Relationshipallowstocrossreference2entitiesviaLinkand/orid.\\\",\\\"title\\\":\\\"Relationship\\\",\\\"type\\\":\\\"object\\\",\\\"properties\\\":{\\\"id\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"idoftherelatedresource\\\"},\\\"type\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"Typeoftherelatedresource\\\",\\\"example\\\":\\\"processed-dcs-passenger\\\"},\\\"href\\\":{\\\"type\\\":\\\"string\\\",\\\"format\\\":\\\"url\\\",\\\"description\\\":\\\"URLvalue\\\"}}}}}},{\\\"type\\\":\\\"object\\\",\\\"description\\\":\\\"Descriptionofaparticularpointorplaceinphysicalspace\\\",\\\"title\\\":\\\"Location\\\",\\\"properties\\\":{\\\"subtype\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"Locationsub-type(e.g.airport,port,rail-station,restaurant,atm...)\\\"},\\\"name\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"Labelassociatedtothelocation(e.g.EiffelTower,MadisonSquare)\\\",\\\"example\\\":\\\"EiffelTower\\\"},\\\"iataCode\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"IATAlocationcode\\\",\\\"example\\\":\\\"PAR\\\"},\\\"address\\\":{\\\"type\\\":\\\"object\\\",\\\"description\\\":\\\"Addressinformation\\\",\\\"title\\\":\\\"Address\\\",\\\"properties\\\":{\\\"postalCode\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"Example:74130\\\"},\\\"countryCode\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"ISO3166-1countrycode\\\",\\\"pattern\\\":\\\"[a-zA-Z]{2}\\\"},\\\"stateCode\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"Statecode(twocharacterstandardIATAstatecode)\\\",\\\"pattern\\\":\\\"[a-zA-Z0-9]{1,2}\\\"}}},\\\"geoCode\\\":{\\\"type\\\":\\\"object\\\",\\\"description\\\":\\\"GeographiccoordinatesdescribingthepositionofanylocationonthesurfaceofEarth\\\",\\\"title\\\":\\\"GeoCode\\\",\\\"properties\\\":{\\\"latitude\\\":{\\\"type\\\":\\\"number\\\",\\\"format\\\":\\\"float\\\",\\\"description\\\":\\\"Latitudeofthepositionexpressedindecimaldegrees(WSG84),e.g.6.244203.Apositivevaluedenotesnorthernhemisphereortheequator,andanegativevaluedenotessouthernhemisphere.Thenumberofdigitstorepresenttheprecisionofthecoordinate.\\\",\\\"minimum\\\":-90,\\\"exclusiveMinimum\\\":false,\\\"maximum\\\":90,\\\"exclusiveMaximum\\\":false,\\\"example\\\":48.85837},\\\"longitude\\\":{\\\"type\\\":\\\"number\\\",\\\"format\\\":\\\"float\\\",\\\"description\\\":\\\"Longitudeofthepositionexpressedindecimaldegrees(WSG84),e.g.-75.581211.Apositivevaluedenoteseastlongitudeortheprimemeridian,andanegativevaluedenoteswestlongitude.Thenumberofdigitstorepresenttheprecisionofthecoordinate.\\\",\\\"minimum\\\":-180,\\\"exclusiveMinimum\\\":false,\\\"maximum\\\":180,\\\"exclusiveMaximum\\\":false,\\\"example\\\":2.294481}}}}}],\\\"description\\\":\\\"\\\"},\\\"Error_400\\\":{\\\"type\\\":\\\"object\\\",\\\"description\\\":\\\"Asetoferrors\\\",\\\"title\\\":\\\"Error400\\\",\\\"properties\\\":{\\\"errors\\\":{\\\"type\\\":\\\"array\\\",\\\"items\\\":{\\\"type\\\":\\\"object\\\",\\\"description\\\":\\\"TheErrorDefinition\\\",\\\"title\\\":\\\"Error\\\",\\\"properties\\\":{\\\"status\\\":{\\\"type\\\":\\\"integer\\\",\\\"description\\\":\\\"The[HTTPstatuscode](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml)ofthisresponse.Thisispresentonlyinterminalerrorswhichcauseanunsuccessfulresponse.Inthecaseofmultipleerrors,theymustallhavethesamestatus.\\\"},\\\"code\\\":{\\\"type\\\":\\\"integer\\\",\\\"description\\\":\\\"Amachine-readableerrorcodefromtheAmadeusCannedMessagestable,thatwillenabletheAPIConsumerscodetohandlethistypeoferror\\\"},\\\"title\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"AnerrortitlefromtheCannedMessagestablewitha1:1correspondencetotheerrorcode.Thismaybelocalized\\\"},\\\"detail\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"Aneasy-to-readexplanationspecifictothisoccurrenceoftheproblem.ItshouldgivetheAPIconsumeranideaofwhatwentwrongandhowtorecoverfromit.Likethetitle,thisfield’svaluecanbelocalized.\\\"},\\\"source\\\":{\\\"type\\\":\\\"object\\\",\\\"title\\\":\\\"Error_Source\\\",\\\"properties\\\":{\\\"parameter\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"ThekeyoftheURIpathorqueryparameterthatcausedtheerror\\\"},\\\"pointer\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"AJSONPointer[RFC6901]totheassociatedentityintherequestbodythatcausedthiserror\\\"},\\\"example\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"Asampleinputtoguidetheuserwhenresolvingthisissue\\\"}}}}}}}},\\\"Error_500\\\":{\\\"type\\\":\\\"object\\\",\\\"description\\\":\\\"Asetoferrors\\\",\\\"title\\\":\\\"Error500\\\",\\\"properties\\\":{\\\"errors\\\":{\\\"type\\\":\\\"array\\\",\\\"items\\\":{\\\"type\\\":\\\"object\\\",\\\"description\\\":\\\"TheErrorDefinition\\\",\\\"title\\\":\\\"Error\\\",\\\"properties\\\":{\\\"status\\\":{\\\"type\\\":\\\"integer\\\",\\\"description\\\":\\\"The[HTTPstatuscode](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml)ofthisresponse.Thisispresentonlyinterminalerrorswhichcauseanunsuccessfulresponse.Inthecaseofmultipleerrors,theymustallhavethesamestatus.\\\"},\\\"code\\\":{\\\"type\\\":\\\"integer\\\",\\\"description\\\":\\\"Amachine-readableerrorcodefromtheAmadeusCannedMessagestable,thatwillenabletheAPIConsumerscodetohandlethistypeoferror\\\"},\\\"title\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"AnerrortitlefromtheCannedMessagestablewitha1:1correspondencetotheerrorcode.Thismaybelocalized\\\"},\\\"detail\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"Aneasy-to-readexplanationspecifictothisoccurrenceoftheproblem.ItshouldgivetheAPIconsumeranideaofwhatwentwrongandhowtorecoverfromit.Likethetitle,thisfield’svaluecanbelocalized.\\\"},\\\"source\\\":{\\\"type\\\":\\\"object\\\",\\\"title\\\":\\\"Error_Source\\\",\\\"properties\\\":{\\\"parameter\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"ThekeyoftheURIpathorqueryparameterthatcausedtheerror\\\"},\\\"pointer\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"AJSONPointer[RFC6901]totheassociatedentityintherequestbodythatcausedthiserror\\\"},\\\"example\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"Asampleinputtoguidetheuserwhenresolvingthisissue\\\"}}}}}}}},\\\"Meta\\\":{\\\"type\\\":\\\"object\\\",\\\"description\\\":\\\"Metainformationaboutthereturnedobject(s)in\\\\\\\"data\\\\\\\"\\\",\\\"title\\\":\\\"Meta\\\",\\\"properties\\\":{\\\"count\\\":{\\\"type\\\":\\\"integer\\\",\\\"format\\\":\\\"int64\\\",\\\"description\\\":\\\"Totalnumberofobject(s)retrieved\\\",\\\"minimum\\\":0,\\\"exclusiveMinimum\\\":false},\\\"links\\\":{\\\"type\\\":\\\"object\\\",\\\"title\\\":\\\"Links\\\",\\\"description\\\":\\\"Linksrelatedtothereturnedobject(s)\\\",\\\"properties\\\":{\\\"self\\\":{\\\"type\\\":\\\"string\\\",\\\"format\\\":\\\"url\\\",\\\"description\\\":\\\"Linktothesamepage.\\\"}}}}},\\\"Warning\\\":{\\\"type\\\":\\\"object\\\",\\\"description\\\":\\\"TheWarningDefinition\\\",\\\"title\\\":\\\"Warning\\\",\\\"properties\\\":{\\\"code\\\":{\\\"type\\\":\\\"integer\\\",\\\"description\\\":\\\"Amachine-readableerrorcodefromtheCannedMessagestable,thatwillenabletheAPIConsumerscodetohandlethistypeoferror\\\"},\\\"title\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"AnerrortitlefromtheCannedMessagestablewitha1:1correspondencetotheerrorcode.Thismaybelocalized\\\"},\\\"detail\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"Aneasy-to-readexplanationspecifictothisoccurrenceoftheproblem.ItshouldgivetheAPIconsumeranideaofwhatwentwrongandhowtorecoverfromit.Likethetitle,thisfield’svaluecanbelocalized.\\\"},\\\"source\\\":{\\\"type\\\":\\\"object\\\",\\\"description\\\":\\\"TheWarningSourceDefinition\\\",\\\"title\\\":\\\"Warning_Source\\\",\\\"properties\\\":{\\\"parameter\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"ThekeyoftheURIpathorqueryparameterthatcausedtheerror\\\"},\\\"pointer\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"AJSONPointer[RFC6901]totheassociatedentityintherequestbodythatcausedthiserror\\\"},\\\"example\\\":{\\\"type\\\":\\\"string\\\",\\\"description\\\":\\\"Asampleinputtoguidetheuserwhenresolvingthisissu\\\"}}}},\\\"required\\\":[\\\"code\\\",\\\"title\\\"]}}}}\",\n \"numInputs\": 5\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3000/api/v1/inputs-get",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"v1",
"inputs-get"
]
}
},
"response": []
},
{
"name": "openai_for_get_flights",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"request\": \"/shopping/flight-offers\",\n \"json\": \"{\\\"openapi\\\":\\\"3.0.0\\\",\\\"servers\\\":[{\\\"url\\\":\\\"https:\\/\\/test.api.amadeus.com\\/v2\\\"}],\\\"info\\\":{\\\"description\\\":\\\"\\nBefore using this API, we recommend you read our **[Authorization Guide](https:\\/\\/developers.amadeus.com\\/self-service\\/apis-docs\\/guides\\/authorization)** for more information on how to generate an access token. \\n\\nPlease also be aware that our test environment is based on a subset of the production, if you are not returning any results try with big cities\\/airports like LON (London) or NYC (New-York).\\\",\\\"title\\\":\\\"Flight Offers Search\\\",\\\"version\\\":\\\"2.2.0\\\",\\\"x-apisguru-categories\\\":[\\\"location\\\"],\\\"x-logo\\\":{\\\"url\\\":\\\"https:\\/\\/api.apis.guru\\/v2\\/cache\\/logo\\/https_amadeus.com_images_en_technology_mobile-tablet_mobile-woman-office-city.jpg.transform_medium_img.jpg\\\"},\\\"x-origin\\\":[{\\\"format\\\":\\\"swagger\\\",\\\"url\\\":\\\"https:\\/\\/developers.amadeus.com\\/PAS-EAS\\/api\\/v0\\/documents\\/10181\\/file\\\",\\\"version\\\":\\\"2.0\\\"}],\\\"x-providerName\\\":\\\"amadeus.com\\\",\\\"x-release-note\\\":{\\\"2.0.0\\\":[\\\"Initial Version\\\",\\\"Includes search and price flight offer\\\"],\\\"2.1.0\\\":[\\\"Add currencies, aircraft and carriers dictionary\\\"],\\\"2.2.0\\\":[\\\"Add maxPrice filtering\\\"]},\\\"x-status\\\":\\\"validated\\\",\\\"x-tags\\\":[\\\"#online-retail\\\",\\\"#mobile-services\\\",\\\"#ama-for-dev\\\"]},\\\"paths\\\":{\\\"\\/shopping\\/flight-offers\\\":{\\\"get\\\":{\\\"description\\\":\\\"\\\",\\\"operationId\\\":\\\"getFlightOffers\\\",\\\"parameters\\\":[{\\\"description\\\":\\\"city\\/airport [IATA code](http:\\/\\/www.iata.org\\/publications\\/Pages\\/code-search.aspx) from which the traveler will depart, e.g. BOS for Boston\\\",\\\"example\\\":\\\"SYD\\\",\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"originLocationCode\\\",\\\"required\\\":true,\\\"schema\\\":{\\\"pattern\\\":\\\"[A-Z]{3}\\\",\\\"type\\\":\\\"string\\\"}},{\\\"description\\\":\\\"city\\/airport [IATA code](http:\\/\\/www.iata.org\\/publications\\/Pages\\/code-search.aspx) to which the traveler is going, e.g. PAR for Paris\\\",\\\"example\\\":\\\"BKK\\\",\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"destinationLocationCode\\\",\\\"required\\\":true,\\\"schema\\\":{\\\"pattern\\\":\\\"[A-Z]{3}\\\",\\\"type\\\":\\\"string\\\"}},{\\\"description\\\":\\\"the date on which the traveler will depart from the origin to go to the destination. Dates are specified in the [ISO 8601](https:\\/\\/en.wikipedia.org\\/wiki\\/ISO_8601) YYYY-MM-DD format, e.g. 2017-12-25\\\",\\\"example\\\":\\\"2021-02-01\\\",\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"departureDate\\\",\\\"required\\\":true,\\\"schema\\\":{\\\"format\\\":\\\"date\\\",\\\"type\\\":\\\"string\\\"}},{\\\"description\\\":\\\"the date on which the traveler will depart from the destination to return to the origin. If this parameter is not specified, only one-way itineraries are found. If this parameter is specified, only round-trip itineraries are found. Dates are specified in the [ISO 8601](https:\\/\\/en.wikipedia.org\\/wiki\\/ISO_8601) YYYY-MM-DD format, e.g. 2018-02-28\\\",\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"returnDate\\\",\\\"required\\\":false,\\\"schema\\\":{\\\"format\\\":\\\"date\\\",\\\"type\\\":\\\"string\\\"}},{\\\"description\\\":\\\"the number of adult travelers (age 12 or older on date of departure).\\\",\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"adults\\\",\\\"required\\\":true,\\\"schema\\\":{\\\"default\\\":1,\\\"maximum\\\":9,\\\"minimum\\\":1,\\\"type\\\":\\\"integer\\\"}},{\\\"description\\\":\\\"the number of child travelers (older than age 2 and younger than age 12 on date of departure) who will each have their own separate seat. If specified, this number should be greater than or equal to 0\\\",\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"children\\\",\\\"required\\\":false,\\\"schema\\\":{\\\"maximum\\\":9,\\\"minimum\\\":0,\\\"type\\\":\\\"integer\\\"}},{\\\"description\\\":\\\"the number of infant travelers (whose age is less or equal to 2 on date of departure). Infants travel on the lap of an adult traveler, and thus the number of infants must not exceed the number of adults. If specified, this number should be greater than or equal to 0\\\",\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"infants\\\",\\\"required\\\":false,\\\"schema\\\":{\\\"maximum\\\":9,\\\"minimum\\\":0,\\\"type\\\":\\\"integer\\\"}},{\\\"description\\\":\\\"most of the flight time should be spent in a cabin of this quality or higher. The accepted travel class is economy, premium economy, business or first class. If no travel class is specified, the search considers any travel class\\\",\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"travelClass\\\",\\\"required\\\":false,\\\"schema\\\":{\\\"enum\\\":[\\\"ECONOMY\\\",\\\"PREMIUM_ECONOMY\\\",\\\"BUSINESS\\\",\\\"FIRST\\\"],\\\"type\\\":\\\"string\\\"}},{\\\"description\\\":\\\"This option ensures that the system will only consider these airlines. This can not be cumulated with parameter excludedAirlineCodes.\\n\\nAirlines are specified as [IATA airline codes](http:\\/\\/www.iata.org\\/publications\\/Pages\\/code-search.aspx) and are comma-separated, e.g. 6X,7X,8X\\n\\\",\\\"explode\\\":false,\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"includedAirlineCodes\\\",\\\"required\\\":false,\\\"schema\\\":{\\\"pattern\\\":\\\"[0-9A-Z]{2}\\\",\\\"type\\\":\\\"string\\\"},\\\"style\\\":\\\"form\\\"},{\\\"description\\\":\\\"This option ensures that the system will ignore these airlines. This can not be cumulated with parameter includedAirlineCodes.\\n\\nAirlines are specified as [IATA airline codes](http:\\/\\/www.iata.org\\/publications\\/Pages\\/code-search.aspx) and are comma-separated, e.g. 6X,7X,8X\\n\\\",\\\"explode\\\":false,\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"excludedAirlineCodes\\\",\\\"required\\\":false,\\\"schema\\\":{\\\"pattern\\\":\\\"[0-9A-Z]{2}\\\",\\\"type\\\":\\\"string\\\"},\\\"style\\\":\\\"form\\\"},{\\\"description\\\":\\\"if set to true, the search will find only flights going from the origin to the destination with no stop in between\\\",\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"nonStop\\\",\\\"required\\\":false,\\\"schema\\\":{\\\"default\\\":false,\\\"type\\\":\\\"boolean\\\"}},{\\\"description\\\":\\\"the preferred currency for the flight offers. Currency is specified in the [ISO 4217](https:\\/\\/en.wikipedia.org\\/wiki\\/ISO_4217) format, e.g. EUR for Euro\\\",\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"currencyCode\\\",\\\"required\\\":false,\\\"schema\\\":{\\\"pattern\\\":\\\"[A-Z]{3}\\\",\\\"type\\\":\\\"string\\\"}},{\\\"description\\\":\\\"maximum price per traveler. By default, no limit is applied. If specified, the value should be a positive number with no decimals\\\",\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"maxPrice\\\",\\\"required\\\":false,\\\"schema\\\":{\\\"minimum\\\":1,\\\"type\\\":\\\"integer\\\"}},{\\\"description\\\":\\\"maximum number of flight offers to return. If specified, the value should be greater than or equal to 1\\\",\\\"in\\\":\\\"query\\\",\\\"name\\\":\\\"max\\\",\\\"required\\\":false,\\\"schema\\\":{\\\"default\\\":250,\\\"minimum\\\":1,\\\"type\\\":\\\"integer\\\"}}],\\\"responses\\\":{\\\"200\\\":{\\\"$ref\\\":\\\"#\\/components\\/responses\\/GETAirOffersReply\\\"},\\\"400\\\":{\\\"$ref\\\":\\\"#\\/components\\/responses\\/400_Search\\\"},\\\"default\\\":{\\\"$ref\\\":\\\"#\\/components\\/responses\\/500\\\"}},\\\"summary\\\":\\\"Return list of Flight Offers based on searching criteria.\\\",\\\"tags\\\":[\\\"Shopping\\\"]}}}}\",\n \"numInputs\": 5\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3000/api/v1/inputs-get",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"v1",
"inputs-get"
]
}
},
"response": []
},
{
"name": "openai_for_post_flights",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"request\": \"/shopping/flight-offers\",\n \"json\": \"{\\\"paths\\\":{\\\"/shopping/flight-offers\\\":{\\\"post\\\":{\\\"description\\\":\\\"\\\",\\\"operationId\\\":\\\"searchFlightOffers\\\",\\\"parameters\\\":[{\\\"$ref\\\":\\\"#/components/parameters/getOverride\\\"}],\\\"requestBody\\\":{\\\"content\\\":{\\\"application/vnd.amadeus+json\\\":{\\\"schema\\\":{\\\"$ref\\\":\\\"#/components/schemas/GetFlightOffersQuery\\\"}}},\\\"description\\\":\\\"listofcriteriatoretrievealistofflightoffers\\\",\\\"required\\\":true},\\\"responses\\\":{\\\"200\\\":{\\\"$ref\\\":\\\"#/components/responses/returnAirOffers\\\"},\\\"400\\\":{\\\"$ref\\\":\\\"#/components/responses/400_Search\\\"},\\\"default\\\":{\\\"$ref\\\":\\\"#/components/responses/500\\\"}},\\\"summary\\\":\\\"ReturnlistofFlightOffersbasedonpostedsearchingcriteria.\\\",\\\"tags\\\":[\\\"Shopping\\\"]}}},\\\"components\\\":{\\\"parameters\\\":{\\\"getOverride\\\":{\\\"description\\\":\\\"theHTTPmethodtoapply\\\",\\\"in\\\":\\\"header\\\",\\\"name\\\":\\\"X-HTTP-Method-Override\\\",\\\"required\\\":true,\\\"schema\\\":{\\\"default\\\":\\\"GET\\\",\\\"type\\\":\\\"string\\\"}}},\\\"schemas\\\":{\\\"Collection_Meta_Link\\\":{\\\"properties\\\":{\\\"count\\\":{\\\"example\\\":1,\\\"type\\\":\\\"integer\\\"},\\\"links\\\":{\\\"example\\\":{\\\"self\\\":\\\"https://test.api.amadeus.com/v1/area/resources?param=value\\\"},\\\"properties\\\":{\\\"first\\\":{\\\"example\\\":\\\"https://test.api.amadeus.com/v1/area/resources?...\\\",\\\"format\\\":\\\"uri\\\",\\\"type\\\":\\\"string\\\"},\\\"last\\\":{\\\"example\\\":\\\"https://test.api.amadeus.com/v1/area/resources?...\\\",\\\"format\\\":\\\"uri\\\",\\\"type\\\":\\\"string\\\"},\\\"next\\\":{\\\"example\\\":\\\"https://test.api.amadeus.com/v1/area/resources?...\\\",\\\"format\\\":\\\"uri\\\",\\\"type\\\":\\\"string\\\"},\\\"previous\\\":{\\\"example\\\":\\\"https://test.api.amadeus.com/v1/area/resources?...\\\",\\\"format\\\":\\\"uri\\\",\\\"type\\\":\\\"string\\\"},\\\"self\\\":{\\\"example\\\":\\\"https://test.api.amadeus.com/v1/area/resources?...\\\",\\\"format\\\":\\\"uri\\\",\\\"type\\\":\\\"string\\\"},\\\"up\\\":{\\\"example\\\":\\\"https://test.api.amadeus.com/v1/area/resources?...\\\",\\\"format\\\":\\\"uri\\\",\\\"type\\\":\\\"string\\\"}},\\\"title\\\":\\\"CollectionLinks\\\"}},\\\"title\\\":\\\"Collection_Meta\\\"},\\\"Coverage\\\":{\\\"description\\\":\\\"partofthetripcoveredbythetravelclassrestriction(ALL_SEGMENTSifommited)\\\",\\\"enum\\\":[\\\"MOST_SEGMENTS\\\",\\\"AT_LEAST_ONE_SEGMENT\\\",\\\"ALL_SEGMENTS\\\"],\\\"example\\\":\\\"MOST_SEGMENTS\\\",\\\"type\\\":\\\"string\\\"},\\\"CurrencyEntry\\\":{\\\"additionalProperties\\\":{\\\"example\\\":\\\"EUR\\\",\\\"type\\\":\\\"string\\\"},\\\"properties\\\":{\\\"key\\\":{\\\"example\\\":\\\"Euro\\\",\\\"type\\\":\\\"string\\\"}},\\\"required\\\":[\\\"key\\\"]},\\\"DateTimeRange\\\":{\\\"properties\\\":{\\\"date\\\":{\\\"description\\\":\\\"Datesarespecifiedinthe[ISO8601](https://en.wikipedia.org/wiki/ISO_8601)YYYY-MM-DDformat,e.g.2018-12-25\\\",\\\"example\\\":\\\"2018-09-22\\\",\\\"format\\\":\\\"date\\\",\\\"type\\\":\\\"string\\\"},\\\"dateWindow\\\":{\\\"description\\\":\\\"Either1,2or3extradaysaroundthelocaldate(IxDfor+/-xdays-Ex:I3D),Either1to3daysafterthelocaldate(PxDfor+xdays-Ex:P3D),or1to3daysbeforethelocaldate(MxDfor-xdays-Ex:M3D)\\\\n\\\\nCannotbecombinedwith\\\\\\\"originRadius\\\\\\\"or\\\\\\\"destinationRadius\\\\\\\".\\\\n\\\",\\\"example\\\":\\\"I3D\\\",\\\"pattern\\\":\\\"^[MPI][1-3]D\\\",\\\"type\\\":\\\"string\\\"},\\\"time\\\":{\\\"description\\\":\\\"Localtime.hh:mm:ssformat,e.g10:30:00\\\",\\\"example\\\":\\\"10:30:00\\\",\\\"type\\\":\\\"string\\\"},\\\"timeWindow\\\":{\\\"description\\\":\\\"1to12hoursaround(both+and-)thelocaltime.Possiblylimitedbythenumberofextradayswhenspecified,i.e.insomesituations,itmaynotbeusedtoexceedthemaximumdaterange.[1-12]Hformat,e.g.6H\\\\n\\\\nCannotbecombinedwith\\\\\\\"originRadius\\\\\\\"or\\\\\\\"destinationRadius\\\\\\\".\\\\n\\\",\\\"example\\\":\\\"2H\\\",\\\"pattern\\\":\\\"^([1-9]|10|11|12)H\\\",\\\"type\\\":\\\"string\\\"}},\\\"required\\\":[\\\"date\\\"],\\\"title\\\":\\\"dateTimeRange\\\",\\\"type\\\":\\\"object\\\"},\\\"Dictionaries\\\":{\\\"properties\\\":{\\\"aircraft\\\":{\\\"$ref\\\":\\\"#/components/schemas/AircraftEntry\\\"},\\\"carriers\\\":{\\\"$ref\\\":\\\"#/components/schemas/CarrierEntry\\\"},\\\"currencies\\\":{\\\"$ref\\\":\\\"#/components/schemas/CurrencyEntry\\\"},\\\"locations\\\":{\\\"$ref\\\":\\\"#/components/schemas/LocationEntry\\\"}},\\\"type\\\":\\\"object\\\"},\\\"Error_400\\\":{\\\"example\\\":{\\\"errors\\\":[{\\\"code\\\":477,\\\"detail\\\":\\\"invalidqueryparameterformat\\\",\\\"source\\\":{\\\"example\\\":\\\"CDG\\\",\\\"parameter\\\":\\\"airport\\\"},\\\"status\\\":400,\\\"title\\\":\\\"INVALIDFORMAT\\\"}]},\\\"properties\\\":{\\\"errors\\\":{\\\"items\\\":{\\\"$ref\\\":\\\"#/components/schemas/Issue\\\"},\\\"type\\\":\\\"array\\\"}},\\\"required\\\":[\\\"errors\\\"]},\\\"Error_500\\\":{\\\"example\\\":{\\\"errors\\\":[{\\\"code\\\":141,\\\"status\\\":500,\\\"title\\\":\\\"SYSTEMERRORHASOCCURRED\\\"}]},\\\"properties\\\":{\\\"errors\\\":{\\\"items\\\":{\\\"$ref\\\":\\\"#/components/schemas/Issue\\\"},\\\"type\\\":\\\"array\\\"}},\\\"required\\\":[\\\"errors\\\"]},\\\"ExtendedPricingOptions\\\":{\\\"description\\\":\\\"farefilteroptions\\\",\\\"properties\\\":{\\\"includedCheckedBagsOnly\\\":{\\\"description\\\":\\\"Iftrue,returnstheflight-offerswithincludedcheckedbagsonly\\\",\\\"example\\\":true,\\\"type\\\":\\\"boolean\\\"}},\\\"title\\\":\\\"pricingOptions\\\",\\\"type\\\":\\\"object\\\"},\\\"Extended_Price\\\":{\\\"allOf\\\":[{\\\"properties\\\":{\\\"additionalServices\\\":{\\\"items\\\":{\\\"properties\\\":{\\\"amount\\\":{\\\"example\\\":\\\"332.70\\\",\\\"type\\\":\\\"string\\\"},\\\"type\\\":{\\\"$ref\\\":\\\"#/components/schemas/AdditionalServiceType\\\"}},\\\"title\\\":\\\"AdditionalService\\\",\\\"type\\\":\\\"object\\\"},\\\"title\\\":\\\"AdditionalServices\\\",\\\"type\\\":\\\"array\\\"},\\\"billingCurrency\\\":{\\\"description\\\":\\\"Currencyofthepayment.Itmaybedifferentthantherequestedcurrency\\\",\\\"example\\\":\\\"EUR\\\",\\\"type\\\":\\\"string\\\"},\\\"grandTotal\\\":{\\\"description\\\":\\\"Totalamountpaidbytheuser(includingfeesandselectedadditionalservices).\\\",\\\"example\\\":\\\"987.00\\\",\\\"type\\\":\\\"string\\\"},\\\"margin\\\":{\\\"description\\\":\\\"BOOKstepONLY-Thepricemarginpercentage(plusorminus)thatthebookingcantolerate.Whensetto0,thennopricemaginistolerated.\\\",\\\"example\\\":\\\"1.00\\\",\\\"type\\\":\\\"string\\\"}},\\\"type\\\":\\\"object\\\"},{\\\"$ref\\\":\\\"#/components/schemas/Price\\\"}],\\\"description\\\":\\\"priceinformation\\\",\\\"title\\\":\\\"Price\\\",\\\"type\\\":\\\"object\\\"},\\\"GetFlightOffersQuery\\\":{\\\"example\\\":{\\\"currencyCode\\\":\\\"USD\\\",\\\"originDestinations\\\":[{\\\"departureDateTimeRange\\\":{\\\"date\\\":\\\"2020-08-01\\\",\\\"time\\\":\\\"10:00:00\\\"},\\\"destinationLocationCode\\\":\\\"MAD\\\",\\\"id\\\":\\\"1\\\",\\\"originLocationCode\\\":\\\"RIO\\\"},{\\\"departureDateTimeRange\\\":{\\\"date\\\":\\\"2020-08-05\\\",\\\"time\\\":\\\"17:00:00\\\"},\\\"destinationLocationCode\\\":\\\"RIO\\\",\\\"id\\\":\\\"2\\\",\\\"originLocationCode\\\":\\\"MAD\\\"}],\\\"searchCriteria\\\":{\\\"flightFilters\\\":{\\\"cabinRestrictions\\\":[{\\\"cabin\\\":\\\"BUSINESS\\\",\\\"coverage\\\":\\\"MOST_SEGMENTS\\\",\\\"originDestinationIds\\\":[\\\"1\\\"]}],\\\"carrierRestrictions\\\":{\\\"excludedCarrierCodes\\\":[\\\"AA\\\",\\\"TP\\\",\\\"AZ\\\"]}},\\\"maxFlightOffers\\\":2},\\\"sources\\\":[\\\"GDS\\\"],\\\"travelers\\\":[{\\\"id\\\":\\\"1\\\",\\\"travelerType\\\":\\\"ADULT\\\"},{\\\"id\\\":\\\"2\\\",\\\"travelerType\\\":\\\"CHILD\\\"}]}}}}}\",\n \"numInputs\": 5\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3000/api/v1/inputs-post",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"v1",
"inputs-post"
]
}
},
"response": []
},
{
"name": "search_flights",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer VcsuewbBzUld5FoDGkzXrH1iM7hW",
"type": "text"
}
],
"url": {
"raw": "https://test.api.amadeus.com/v2/shopping/flight-offers?originLocationCode=JFK&destinationLocationCode=LAX&adults=2&departureDate=2023-06-01&travelClass=ECONOMY",
"protocol": "https",
"host": [
"test",
"api",
"amadeus",
"com"
],
"path": [
"v2",
"shopping",
"flight-offers"
],
"query": [
{
"key": "originLocationCode",
"value": "JFK"
},
{
"key": "destinationLocationCode",
"value": "LAX"
},
{
"key": "adults",
"value": "2"
},
{
"key": "departureDate",
"value": "2023-06-01"
},
{
"key": "travelClass",
"value": "ECONOMY"
}
]
}
},
"response": []
},
{
"name": "search_city",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer J44NQP6qZ5rH7R21HtG1iAkiE0Bb",
"type": "text"
}
],
"url": {
"raw": "https://test.api.amadeus.com/v1/reference-data/locations/cities?countryCode=US&keyword=New York&max=5",
"protocol": "https",
"host": [
"test",
"api",
"amadeus",
"com"
],
"path": [
"v1",
"reference-data",
"locations",
"cities"
],
"query": [
{
"key": "countryCode",
"value": "US"
},
{
"key": "keyword",
"value": "New York"
},
{
"key": "max",
"value": "5"
}
]
}
},
"response": []
},
{
"name": "search_flights posted",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer eDWf1OwfPD7GXM0C4FWvTwJxTDCG",
"type": "text"
},
{
"key": "X-HTTP-Method-Override",
"value": "\"POST\"",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"currencyCode\": \"USD\",\n \"originDestinations\": [\n {\n \"departureDateTimeRange\": {\n \"date\": \"2023-08-01\",\n \"time\": \"10:00:00\"\n },\n \"destinationLocationCode\": \"MAD\",\n \"id\": \"1\",\n \"originLocationCode\": \"RIO\"\n },\n {\n \"departureDateTimeRange\": {\n \"date\": \"2023-08-05\",\n \"time\": \"17:00:00\"\n },\n \"destinationLocationCode\": \"RIO\",\n \"id\": \"2\",\n \"originLocationCode\": \"MAD\"\n }\n ],\n \"searchCriteria\": {\n \"flightFilters\": {\n \"cabinRestrictions\": [\n {\n \"cabin\": \"BUSINESS\",\n \"coverage\": \"MOST_SEGMENTS\",\n \"originDestinationIds\": [\n \"1\"\n ]\n }\n ],\n \"carrierRestrictions\": {\n \"excludedCarrierCodes\": [\n \"AA\",\n \"TP\",\n \"AZ\"\n ]\n }\n },\n \"maxFlightOffers\": 2\n },\n \"sources\": [\n \"GDS\"\n ],\n \"travelers\": [\n {\n \"id\": \"1\",\n \"travelerType\": \"ADULT\"\n },\n {\n \"id\": \"2\",\n \"travelerType\": \"CHILD\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://test.api.amadeus.com/v2/shopping/flight-offers",
"protocol": "https",
"host": [
"test",
"api",
"amadeus",
"com"
],
"path": [
"v2",
"shopping",
"flight-offers"
]
}
},
"response": []
},
{
"name": "access_token",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "grant_type=client_credentials&client_id=3GdKBYuoHqAXgb8kGynA36S6bfX8vVhh&client_secret=rFvcX0nA7o0rnAUm",
"options": {
"raw": {
"language": "text"
}
}
},
"url": {
"raw": "https://test.api.amadeus.com/v1/security/oauth2/token",
"protocol": "https",
"host": [
"test",
"api",
"amadeus",
"com"
],
"path": [
"v1",
"security",
"oauth2",
"token"
]
}
},
"response": []
}
]
}