mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 15:02:04 +00:00
feat(openapi): publish the Apple Health write-back contract
Declare appleHealthMirror on measurement rows and sync upserts, the list filter, the measurementMirror sync domain, the token setting on the list, the mint and the new PATCH, and the unattributed-readings summary.
This commit is contained in:
1 parent
bfa6873d96
commit
d6774b770d
5 files changed
+354
-18
No files matched your search
+5
-1
@@ -66,7 +66,11 @@ before treating a warning as a regression.
|
||||
`health:write`), audience-bound to `/mcp` and refused on REST writes;
|
||||
- `POST /api/tokens/measurements` mints `measurements:write`, accepted by
|
||||
`POST /api/measurements` and `POST /api/measurements/batch` only, on the
|
||||
holder's own record only;
|
||||
holder's own record only. The readings it writes carry `source: EXTERNAL`
|
||||
and are linked to the token; whether the HealthLog app writes them into
|
||||
Apple Health is the token's `mirrorToAppleHealth` setting (off by
|
||||
default, changed with `PATCH /api/tokens/{id}`), resolved onto every
|
||||
measurement row as `appleHealthMirror`;
|
||||
- `POST /api/tokens/workouts` mints `workouts:write`, accepted by
|
||||
`POST /api/workouts/batch` only, on the holder's own record only; the
|
||||
workouts it writes carry `source: EXTERNAL`;
|
||||
|
||||
Reference in new issue
Block a user