Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 1.8 KB

README.md

File metadata and controls

56 lines (44 loc) · 1.8 KB

Weather Forecast Spring API

Overview

The Weather Forecast API allows users to retrieve weather forecasts based on their CEP (Postal Code) location. The API uses OpenFeign to integrate with external services to convert CEP to latitude and longitude, and then to fetch weather data using these coordinates.

Technologies

  • Spring Boot
  • OpenFeign

Endpoint

Request:

External APIs

CEP to Latitude/Longitude API

Weather Data API

  • Base URL: https://api.open-meteo.com/v1/forecast
  • Method: GET
  • Query Parameters:
    • latitude (Double): The latitude coordinate.
    • longitude (Double): The longitude coordinate.
    • current: A list of weather variables to get current conditions.
    • forecast_days: Per default, only 7 days are returned. Up to 16 days of forecast are possible.
  • And others. See documentation: https://open-meteo.com/en/docs