-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathair.json
77 lines (77 loc) · 2.29 KB
/
air.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
{
"version": 1,
"request": {
"url": "https://test.api.amadeus.com/v2/shopping/flight-offers",
"method": "GET",
"authorization": {
"type": "OAuth2",
"grantType": "ClientCredentials",
"tokenServerUrl": "https://test.api.amadeus.com/v1/security/oauth2/token"
},
"params": {
"originLocationCode": true,
"destinationLocationCode": true,
"departureDate": true,
"returnDate": false,
"adults": true,
"children": false,
"infants": false,
"travelClass": false,
"includedAirlineCodes": false,
"excludedAirlineCodes": false,
"nonStop": false,
"currencyCode": false,
"maxPrice": false,
"max": false
}
},
"examples": {
"originLocationCode": "'SYD'",
"destinationLocationCode": "'BKK'",
"departureDate": "2021-05-21",
"adults": 1
},
"response": {
"ctype": "application/json",
"tablePath": "$.data[*]",
"schema": {
"source": {
"target": "$.source",
"type": "string"
},
"duration": {
"target": "$.itineraries[0].duration",
"type": "string"
},
"departure time": {
"target": "$.itineraries[0].segments[0].departure.at",
"type": "string"
},
"arrival time": {
"target": "$.itineraries[0].segments[-1].arrival.at",
"type": "string"
},
"number of bookable seats": {
"target": "$.numberOfBookableSeats",
"type": "string"
},
"total price": {
"target": "$.price.total",
"type": "string"
},
"currency": {
"target": "$.price.currency",
"type": "string"
},
"one way": {
"target": "$.oneWay",
"type": "boolean"
},
"itineraries": {
"target": "$.itineraries[0].segments",
"type": "list"
}
},
"orient": "records"
}
}