Start fixing forecast service API 14

This commit is contained in:
Urtzi Alfaro
2025-07-29 21:08:33 +02:00
parent c1dda203b6
commit f3e8a6dda8
5 changed files with 95 additions and 12 deletions

View File

@@ -72,7 +72,7 @@ async def get_current_weather(
logger.error("Failed to get current weather", error=str(e))
raise HTTPException(status_code=500, detail=f"Internal server error: {str(e)}")
@router.get("/tenants/{tenant_id}/weather/forecast", response_model=List[WeatherForecastResponse])
@router.post("/tenants/{tenant_id}/weather/forecast", response_model=List[WeatherForecastResponse])
async def get_weather_forecast(
latitude: float = Query(..., description="Latitude"),
longitude: float = Query(..., description="Longitude"),