-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add endpoint to fetch forecast for a specific location and futu…
…re hour - Added route `/locations/<name>/forecast/<int:number_of_hours>h` to fetch forecast for a specific location and number of hours into the future. - Implemented logic to get the current datetime and retrieve the location. - Integrated the get_forecast_for_future_hour method from the Location class to provide the forecast data. - Included error handling for location not found and other exceptions. - Bumped version of the API server to 1.4.8.
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters