Weather Service A RESTful weather service



The Talk Python weather service.

Endpoints

  • Current weather in a city
    GET /api/weather/{city}?country={country}&state={state}

    Parameters
    • Required: city={city} - the city you want to get the weather at.
    • Optional: state={state} - the state of the city (US only, two letter abbreviations).
    • Optional: country={country} - country, US if none specific (two letter abbreviations).
    • Optional: units={units} - units: {metric, imperial, standard}, defaults to metric.
    Response JSON

Recent weather events

  • Denver, US: Sunshine is quickly melting things!
  • Denver, US: 2" of snow this morning