Skip to content

kravcs/weather_v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get current weather data for several cities

REST API for getting weather forecast using 3rd party API. The request to my API can contain several cities, each city should be recognized as separate concurrent request to 3rd party. If during the last 60 seconds the city is repeated in next request, it shold be taken from cache which is implemented using Redis. The response is parsed from Json and returned as simple string.

How to use it

Run in command line

$ mkdir myApp
$ cd myApp
$ git clone https://github.com/kravcs/weather_v2.git .
$ docker-compose up

After application built, run the sample call

$ curl -X GET "http://localhost:8000/weather?city=Vienna,Moscow"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published