-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathhotel.json
73 lines (73 loc) · 2.03 KB
/
hotel.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
{
"version": 1,
"request": {
"url": "https://test.api.amadeus.com/v2/shopping/hotel-offers",
"method": "GET",
"authorization": {
"type": "OAuth2",
"grantType": "ClientCredentials",
"tokenServerUrl": "https://test.api.amadeus.com/v1/security/oauth2/token"
},
"params": {
"cityCode": true,
"latitude": false,
"longitude": false,
"radius": false,
"hotelName": false,
"checkInDate": false,
"checkOutDate": false,
"roomQuantity": false,
"adults": false,
"chains": false,
"ratings": false,
"amenities": false,
"priceRange": false
}
},
"examples": {
"cityCode": "'PAR'"
},
"response": {
"ctype": "application/json",
"tablePath": "$.data[*]",
"schema": {
"name": {
"target": "$.hotel.name",
"type": "string"
},
"rating": {
"target": "$.hotel.rating",
"type": "string"
},
"latitude": {
"target": "$.hotel.latitude",
"type": "string"
},
"longitude": {
"target": "$.hotel.longitude",
"type": "string"
},
"lines": {
"target": "$.hotel.address.lines",
"type": "list"
},
"city": {
"target": "$.hotel.address.cityName",
"type": "string"
},
"contact": {
"target": "$.hotel.contact.phone",
"type": "string"
},
"description": {
"target": "$.hotel.description.text",
"type": "string"
},
"amenities": {
"target": "$.hotel.amenities",
"type": "list"
}
},
"orient": "records"
}
}