wifi-densepose/v2
ruv c6a0d5dbf5 feat(adr-110): REST endpoints /api/v1/nodes/:id/sync and /api/v1/mesh
Iter 29 — extends the iter 23 WebSocket NodeSyncSnapshot publication
with an HTTP surface so non-streaming clients (curl scripts, Home
Assistant REST sensors, Prometheus exporters, automation rule probes)
can poll mesh state without holding a WebSocket connection.

  GET /api/v1/nodes/:id/sync
    200 → Json(NodeSyncSnapshot) when latest_sync is present
    404 → {"error": "unknown_node" | "no_sync", "node_id": N}
           — "no_sync" includes a `hint` pointing operators at the
             "no mesh peer or not v0.6.9+" diagnostic.

  GET /api/v1/mesh
    200 → { "nodes": { "<id>": NodeSyncSnapshot, ... }, "total": N }
    Nodes without a recent sync are omitted; an empty `nodes` object
    means no mesh peers reachable.

Both handlers reuse the iter 23 NodeSyncSnapshot struct (same JSON
shape as the WebSocket broadcast — clients get one schema, two
delivery modes). The Path<u8> extractor returns 404 on overflow
automatically (axum), so /api/v1/nodes/256/sync gives a clean error.

cargo check -p wifi-densepose-sensing-server --no-default-features → green.

Curl quick-start (added to operator playbook material in a follow-up):
  curl http://localhost:3000/api/v1/mesh                  # full fleet
  curl http://localhost:3000/api/v1/nodes/9/sync          # one node

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-05-23 14:30:14 -04:00
..
.claude-flow chore(repo): rename rust-port/wifi-densepose-rs → v2/ (flatten to one level) (#427) 2026-04-25 21:28:13 -04:00
crates feat(adr-110): REST endpoints /api/v1/nodes/:id/sync and /api/v1/mesh 2026-05-23 14:30:14 -04:00
data chore(repo): rename rust-port/wifi-densepose-rs → v2/ (flatten to one level) (#427) 2026-04-25 21:28:13 -04:00
docs chore(repo): rename rust-port/wifi-densepose-rs → v2/ (flatten to one level) (#427) 2026-04-25 21:28:13 -04:00
examples chore(repo): rename rust-port/wifi-densepose-rs → v2/ (flatten to one level) (#427) 2026-04-25 21:28:13 -04:00
patches/ruvector-crv chore(repo): rename rust-port/wifi-densepose-rs → v2/ (flatten to one level) (#427) 2026-04-25 21:28:13 -04:00
Cargo.lock fix(branch-coord): revert ADR-115 Cargo.toml/cli.rs that slipped into iter 18 2026-05-23 13:31:58 -04:00
Cargo.toml feat(cog-person-count): v0.0.1 scaffold + tests + fusion math + bench (ADR-103) (#694) 2026-05-21 18:46:57 -04:00
rust-toolchain.toml v2: pin Rust 1.89 and fix sensing-server UI path when run from v2 (#523) 2026-05-17 18:00:36 -04:00