Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 945 Bytes

README.md

File metadata and controls

32 lines (19 loc) · 945 Bytes

Weather Data API

Simple weather data application that imports data every 15 min for the cities in the list.

The data imported include: temperature, humidity, wind speed and time in Unix format.

Two cities are already preloaded and start importing data when the application is started.

Uses H2 in-memory database with Spring Boot.

Configuration

Java JDK 17

API key

To create your API key, create a user at https://openweathermap.org/ , and you can find it under https://home.openweathermap.org/api_keys. Then replace "INSERT_API_KEY_HERE" with your own API key in the application.properties file in src/main/resources.

Swagger UI

Swagger is used to test REST API functionality, and it is located at http://localhost:8080/swagger-ui/.

Sample for adding a new city

{ "id": 588409, "name": "Tallinn", "country": "EE" }

Full list of cities here (city.list.json.gz): http://bulk.openweathermap.org/sample/<>