Skip to content

Regonos/weather-aggregator-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather apis aggregator

Project for passing exercise on studies

How to run

To build and then run application, you have to simply use given command in working directory:

./gradlew bootJar && java -jar build/libs/weather-apis-aggregator-0.0.1-SNAPSHOT.jar

Usage

To list all available commands, type:
help

Weather summary

By City
Pattern:
http://localhost:8080/summary/city/<city>
Example:
http://localhost:8080/summary/city/Koszalin
By longitude and latitude
Pattern:
http://localhost:8080/summary/location/lat/{lat}/lng/{lng}

Averaged weather

By City
Pattern:
http://localhost:8080/average/city/<city>
Example:
http://localhost:8080/average/city/Koszalin
By longitude and latitude
Pattern:
http://localhost:8080/average/location/lat/{lat}/lng/{lng}

FAQ

  • For now, application is integrated with given weather apis: WeatherStack, OpenWeatherMap
  • To integrate with another one, you have to implement WeatherService interface and register it as a bean.

Feel free to improve! :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages