Added new endpoints under /forecast/narrative
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful

This commit is contained in:
2026-03-27 22:39:17 -05:00
parent 78dc7817e9
commit 291a9178c8
10 changed files with 360 additions and 19 deletions

View File

@@ -1,3 +1,27 @@
# weatherapi
A small HTTP API that serves a variety of weather-related endpoints.
A small HTTP API that serves a variety of weather-related endpoints.
## Endpoints
- `GET /observations`
- `GET /conditions/current`
- `GET /alerts/active`
- `GET /forecast/hourly`
- `GET /forecast/hourly/today`
- `GET /forecast/hourly/tomorrow`
- `GET /forecast/narrative`
- `GET /forecast/narrative/today`
- `GET /forecast/narrative/tomorrow`
## Query Parameters
Shared weather query parameters:
- `format` (`json`, `xml`, `text`)
- `units` (`metric`, `us`)
Forecast endpoint query parameters:
- `precision` (`0`-`2`)
- `tz` / `TZ` (IANA timezone, US abbreviation, or UTC offset)