feat: add read-only playground forecast endpoint
ci / check (push) Successful in 58s

This commit is contained in:
Noel Sabia committed 2026-11-14 20:49:39 +01:00
1 parent 7e9c2d9663
commit c1f701fc16
6 files changed
+496 -13

No files matched your search

+1
View File
@@ -28,6 +28,7 @@ first snapshot arrives. Control endpoints return `503` until `CONTROL_USER` and
| `GET /api/series` | Observed series; query `sensor`, `from`, `to`, `step=15m\|1h`. |
| `GET /api/context` | Weather and holidays. |
| `GET /api/forecast` | Live forecast or last-good fallback; query `sensor`, `horizon`, `scenario`. |
| `GET /api/playground/forecast` | Read-only forecast with optional `temp_c`, `precip_mm`, `is_holiday`; never mutates scenario state. |
| `GET /api/staffing` | Shift plan; query `sensor`, `scenario`, `standard`. |
| `GET /api/scenario` | Current scenario. |
| `POST /api/scenario` | Set scenario (control auth) and broadcast it over SSE. |