Skip to content

Latest commit

 

History

History
53 lines (49 loc) · 1.06 KB

README.md

File metadata and controls

53 lines (49 loc) · 1.06 KB

WEATHER API

The api is hosted online. Here is the API link

Routes

Home page Response

{
  "status":"success",
  "message":"Welcome to Weather API"
}

Weather ( POST request ) /getWeather

Body

{
  "value":"london"
}

Response (200)

{
    "cod": 200,
    "city": "London",
    "ISO": "GB",
    "weather": {
        "id": 804,
        "main": "Clouds",
        "description": "overcast clouds",
        "icon": "04d"
    },
    "main": {
        "temp": 11.47,
        "feels_like": 11.02,
        "temp_min": 9.32,
        "temp_max": 13.38,
        "pressure": 1008,
        "humidity": 90
    }
}

Error Response (400)

{
    "cod": "404",
    "message": "city not found"
}

WEATHER UI