-
Notifications
You must be signed in to change notification settings - Fork 25
/
safety.json
64 lines (64 loc) · 1.78 KB
/
safety.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
{
"version": 1,
"request": {
"url": "https://test.api.amadeus.com/v1/safety/safety-rated-locations",
"method": "GET",
"authorization": {
"type": "OAuth2",
"grantType": "ClientCredentials",
"tokenServerUrl": "https://test.api.amadeus.com/v1/security/oauth2/token"
},
"params": {
"latitude": true,
"longitude": true,
"radius": false
}
},
"examples": {
"latitude": "41.397158",
"longitude": "2.160873"
},
"response": {
"ctype": "application/json",
"tablePath": "$.data[*]",
"schema": {
"id": {
"target": "$.id",
"type": "string"
},
"name": {
"target": "$.name",
"type": "string"
},
"subtype": {
"target": "$.subType",
"type": "string"
},
"lgbtq score": {
"target": "$.safetyScores.lgbtq",
"type": "int"
},
"medical score": {
"target": "$.safetyScores.medical",
"type": "int"
},
"overall score": {
"target": "$.safetyScores.overall",
"type": "int"
},
"physical harm score": {
"target": "$.safetyScores.physicalHarm",
"type": "int"
},
"political freedom score": {
"target": "$.safetyScores.politicalFreedom",
"type": "int"
},
"theft score": {
"target": "$.safetyScores.theft",
"type": "int"
}
},
"orient": "records"
}
}