feat: add read-only playground forecast endpoint #5

Merged
Noel merged 2 commits from feat/playground into main 2026-11-14 20:11:04 +00:00
Owner

Adds GET /api/playground/forecast with optional temp_c, precip_mm and is_holiday. It calls FastAPI /predict, preserves response versions, and never mutates the global scenario.

Includes handler/client tests and README documentation.

Verified locally:

  • base request 200, 48 points
  • weather override 200, points differ
  • unknown sensor 404, bad horizon/scenario/weather 400
  • live scenario state unchanged
Adds `GET /api/playground/forecast` with optional `temp_c`, `precip_mm` and `is_holiday`. It calls FastAPI `/predict`, preserves response versions, and never mutates the global scenario. Includes handler/client tests and README documentation. Verified locally: - base request 200, 48 points - weather override 200, points differ - unknown sensor 404, bad horizon/scenario/weather 400 - live scenario state unchanged
Noel added 2 commits 2026-11-14 20:09:53 +00:00
Merge remote-tracking branch 'refs/remotes/gitea-https/main' into feat/playground
ci / check (push) Successful in 59s
ci / check (pull_request) Successful in 56s
b145201022
Noel merged commit 9478612f1e into main 2026-11-14 20:11:04 +00:00
Noel deleted branch feat/playground 2026-11-14 20:11:24 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Future-City-Hackathon-2026/api-go#5