Our Spring Boot application provides weather information based on a specific date and pincode using the OpenWeather API for historical weather data (https://openweathermap.org/api/history-api-timestamp) and the OpenWeather GeoCoding API for location data (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
- REST API
- RestTemplate