A Spring Boot Application with REST API for weather information for a particular day and a Pincode using OpenWeather API (https://openweathermap.org/api/history-api-timestamp) and OpenWeather GeoCoding API (https://openweathermap.org/api/geocoding-api).
GET: /weather
GET
'http://localhost:8080/weather?pincode={pincode}&for_date={date}'
pincode
required
date
required
'http://localhost:8080/weather?pincode=411014&for_date=2020-10-15'
{
"pincode": 411014,
"place": "Viman Nagar",
"date": "2020-10-15",
"temperature": 298.67,
"humidity": 24,
"pressure": 1017,
"windSpeed": 0.41,
"description": "clear sky"
}
- Java
- Spring Boot
- Spring Data Jpa
- Mysql
- Junit5 and Mockito(Unit Testing)
- REST API
- RestTemplate