-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathweather.json
75 lines (75 loc) · 1.91 KB
/
weather.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
{
"version": 1,
"request": {
"url": "http://api.openweathermap.org/data/2.5/weather",
"method": "GET",
"authorization": {
"type": "QueryParam",
"keyParam": "appid"
},
"params": {
"q": false,
"lat" : false,
"lon" : false,
"id" : false,
"zip" : false,
"units" : false,
"mode" : false,
"lang" : false
}
},
"examples": {
"q": "'vancouver'",
"lat" : "'35'",
"lon" : "'139'",
"id" : "'2885679'",
"zip" : "'94040'"
},
"response": {
"ctype": "application/json",
"tablePath": "$[*]",
"schema": {
"description": {
"target": "$.weather.[*].description",
"type": "string"
},
"temp": {
"target": "$.main.temp",
"type": "float"
},
"feels_like": {
"target": "$.main.feels_like",
"type": "float"
},
"temp_min": {
"target": "$.main.temp_min",
"type": "float"
},
"temp_max": {
"target": "$.main.temp_max",
"type": "float"
},
"pressure": {
"target": "$.main.pressure",
"type": "float"
},
"humidity": {
"target": "$.main.humidity",
"type": "float"
},
"wind": {
"target": "$.wind.speed",
"type": "float"
},
"sunrise": {
"target": "$.sys.sunrise",
"type": "int"
},
"sunset": {
"target": "$.sys.sunset",
"type": "int"
}
},
"orient": "records"
}
}