WS-E: REST API handlers, SSE follow, healthz, tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
This commit is contained in:
1 parent
2d57fb1a78
commit
6130e01b92
6 files changed
+537
-22
No files matched your search
@@ -64,15 +64,15 @@ Design: [`plan.md`](plan.md) · Review fixes: [`plan/review.md`](plan/review.md)
|
||||
## Phase 2 — Surfaces (parallel)
|
||||
|
||||
### WS-E REST API · [card](plan/workstreams/WS-E-rest.md)
|
||||
- [ ] **E1** `api::router(state)` using axum 0.8 `{name}` path syntax
|
||||
- [ ] **E2** `GET /systemd/units?state=`, `/systemd/units/{name}`, `/systemd/timers`
|
||||
- [ ] **E3** `GET /journal?unit=&priority=&lines=` with validation
|
||||
- [ ] **E4** `GET /journal/follow` SSE with keep-alive. Ends on disconnect or shutdown.
|
||||
- [ ] **E5** `GET /docker/ps`, `/docker/containers/{name}`, `/docker/containers/{name}/logs` (JSON, or SSE with `follow=1`)
|
||||
- [ ] **E6** `GET /healthz` on the public router
|
||||
- [ ] **E7** Consistent JSON error body from `AppError`
|
||||
- [ ] **E8** Handler tests against fake sources (`tower::ServiceExt::oneshot`)
|
||||
- [ ] **E9** Docker unavailable returns 503 on docker routes only
|
||||
- [x] **E1** `api::router(state)` using axum 0.8 `{name}` path syntax
|
||||
- [x] **E2** `GET /systemd/units?state=`, `/systemd/units/{name}`, `/systemd/timers`
|
||||
- [x] **E3** `GET /journal?unit=&priority=&lines=` with validation
|
||||
- [x] **E4** `GET /journal/follow` SSE with keep-alive. Ends on disconnect or shutdown.
|
||||
- [x] **E5** `GET /docker/ps`, `/docker/containers/{name}`, `/docker/containers/{name}/logs` (JSON, or SSE with `follow=1`)
|
||||
- [x] **E6** `GET /healthz` on the public router
|
||||
- [x] **E7** Consistent JSON error body from `AppError`
|
||||
- [x] **E8** Handler tests against fake sources (`tower::ServiceExt::oneshot`)
|
||||
- [x] **E9** Docker unavailable returns 503 on docker routes only
|
||||
|
||||
### WS-F MCP · [card](plan/workstreams/WS-F-mcp.md)
|
||||
- [ ] **F1** `TrackerService` with `#[tool_router]` and 8 tools
|
||||
|
||||
Reference in new issue
Block a user