diff options
| author | Luke Hoersten <[email protected]> | 2026-06-13 20:36:34 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-06-13 20:36:34 -0500 |
| commit | 072504c2dfa19e4311e16e5c445d9cc19680dcf5 (patch) | |
| tree | 7f4137b0b51dd36cea8cbc06a082b0a404dbd9c2 /.clangd | |
| parent | 92cda972da3d1d8b6ed221687a1377765259f989 (diff) | |
Consolidate REST API: 4 endpoints, partial /config, /state, GET /config
API surface is now:
GET /state runtime status (replaces /health)
GET /config persisted config
POST /config partial update; brightness is now a field here
POST /state {state: wake|sleep} (replaces /wake and /sleep)
POST /frame unchanged
POST /config now does a partial merge — only present fields are
written. To tweak only brightness, POST {"brightness": 50}.
POST /state replaces POST /wake and POST /sleep with a single
endpoint that takes {state: "wake"|"sleep"}. Idempotent: no-op if
already in the requested state.
Brightness is no longer its own endpoint; it lives in /config with
all the other persisted settings. PWM remains gamma-corrected.
Callback body renamed:
was: {event: wake|sleep, type: tap|timeout}
now: {state: wake|sleep, event: tap|timeout}
The new naming matches POST /state: "state" is the resulting wake/
sleep state and the imperative for Scrypted; "event" is the cause
(tap, timeout, future swipes).
Doc sync: README API/Wake-Sleep/Idempotency/Integration sections and
v2 impl guide API contract, modules, milestones, acceptance criteria
all updated to the new model.
Diffstat (limited to '.clangd')
0 files changed, 0 insertions, 0 deletions
