add weather example

This commit is contained in:
Asim Aslam
2021-06-23 11:23:47 +01:00
parent 1844c4fc0a
commit ff2d5312eb
2 changed files with 23 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
Real time weather API Real time weather forecast
# Weather Service # Weather Service

View File

@@ -1,29 +1,31 @@
{ {
"now": [{ "now": [{
"title": "Get the current weather", "title": "Get current weather",
"description": "Returns the current weather for a location", "description": "Get the weather forecast right at this moment",
"request": { "request": {
"location": "los angeles" "location": "london"
}, },
"response": { "response": {
"location": "Los Angeles", "location": "London",
"region": "California", "region": "City of London, Greater London",
"country": "California", "country": "City of London, Greater London",
"latitude": 34.05, "latitude": 51.52,
"longitude": -118.24, "longitude": -0.11,
"timezone": "America/Los_Angeles", "timezone": "Europe/London",
"local_time": "2021-06-21 6:44", "local_time": "2021-06-23 11:18",
"temp_c": 18.3, "temp_c": 16,
"temp_f": 64.9, "temp_f": 60.8,
"feels_like_c": 18.3, "feels_like_c": 16,
"feels_like_f": 64.9, "feels_like_f": 60.8,
"humidity": 81, "humidity": 48,
"cloud": 100, "cloud": 75,
"daytime": true, "daytime": true,
"condition": "Overcast", "condition": "Partly cloudy",
"icon_url": "//cdn.weatherapi.com/weather/64x64/day/122.png", "icon_url": "//cdn.weatherapi.com/weather/64x64/day/116.png",
"wind_direction": "N" "wind_mph": 4.3,
"wind_kph": 6.8,
"wind_direction": "NE",
"wind_degree": 40
} }
}] }]
} }