A lightweight RESTful API built with Spring Boot to fetch current weather data for any location. Designed with simplicity and efficiency in mind, this project demonstrates:
- Integration with external weather data providers (Visual Crossing)
- Caching for improved performance
- Integration tests using WireMock
- Get today's weather by location
- Caching via Redis for faster responses
- Contract testing with WireMock
- Full Docker setup (Redis included)
git clone https://github.com/GuilhermeLuan/Weather-API
cd Weather-API
docker compose up
./mvnw clean install
./mvnw spring-boot:run
{
"datetime": "2025-03-03",
"address": "Brasil",
"timezone": "America/Sao_Paulo",
"description": "Similar temperatures continuing with no rain expected.",
"temp": 23.4,
"tempMax": 29.2,
"tempMin": 20.0,
"feelsLike": 23.3
}