From ff2d5312eb901831ae16e4e79072df656b1dfc72 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 23 Jun 2021 11:23:47 +0100 Subject: [PATCH] add weather example --- weather/README.md | 2 +- weather/examples.json | 42 ++++++++++++++++++++++-------------------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/weather/README.md b/weather/README.md index d5addcc..d52a969 100644 --- a/weather/README.md +++ b/weather/README.md @@ -1,4 +1,4 @@ -Real time weather API +Real time weather forecast # Weather Service diff --git a/weather/examples.json b/weather/examples.json index a5d3f79..4f2b269 100644 --- a/weather/examples.json +++ b/weather/examples.json @@ -1,29 +1,31 @@ - { "now": [{ - "title": "Get the current weather", - "description": "Returns the current weather for a location", + "title": "Get current weather", + "description": "Get the weather forecast right at this moment", "request": { - "location": "los angeles" + "location": "london" }, "response": { - "location": "Los Angeles", - "region": "California", - "country": "California", - "latitude": 34.05, - "longitude": -118.24, - "timezone": "America/Los_Angeles", - "local_time": "2021-06-21 6:44", - "temp_c": 18.3, - "temp_f": 64.9, - "feels_like_c": 18.3, - "feels_like_f": 64.9, - "humidity": 81, - "cloud": 100, + "location": "London", + "region": "City of London, Greater London", + "country": "City of London, Greater London", + "latitude": 51.52, + "longitude": -0.11, + "timezone": "Europe/London", + "local_time": "2021-06-23 11:18", + "temp_c": 16, + "temp_f": 60.8, + "feels_like_c": 16, + "feels_like_f": 60.8, + "humidity": 48, + "cloud": 75, "daytime": true, - "condition": "Overcast", - "icon_url": "//cdn.weatherapi.com/weather/64x64/day/122.png", - "wind_direction": "N" + "condition": "Partly cloudy", + "icon_url": "//cdn.weatherapi.com/weather/64x64/day/116.png", + "wind_mph": 4.3, + "wind_kph": 6.8, + "wind_direction": "NE", + "wind_degree": 40 } }] }