prop/lib/microwaveprop_web/controllers/api/v1
Graham McIntire bd731685de
feat(api): ingest endpoint for propmonitor beacon measurements
POST /api/v1/beacon-monitor/measurements accepts one measurement per
integration window from a propmonitor client, authenticated by the
BeaconMonitor token. Records noise floor, signal peak/avg dBFS, SNR,
signal-active-fraction, gain, and frequency for later correlation
against weather and propagation scores.

Beacon UUID must resolve to an approved + on-the-air beacon (404
otherwise — the client drops 404s without retry). Retries with the
same (monitor, beacon, measured_at) are idempotent: a unique index
makes the second insert a 409. Every accepted upload stamps the
monitor's last_seen_at — measurements *are* the heartbeat.

MonitorAuth is a separate plug from the user API-token Auth plug;
monitors are not users. The rate limiter buckets each monitor by id so
retry storms after a 5xx don't burn the shared anon-IP bucket.
2026-05-13 16:07:04 -05:00
..
auth_controller.ex feat: secure /api/v1 REST API for regular-user actions 2026-05-09 08:59:54 -05:00
beacon_controller.ex fix(security,perf): address 9 audit findings (access control, DoS, crashes) 2026-05-11 18:53:21 -05:00
beacon_json.ex feat: secure /api/v1 REST API for regular-user actions 2026-05-09 08:59:54 -05:00
beacon_monitor_json.ex feat: secure /api/v1 REST API for regular-user actions 2026-05-09 08:59:54 -05:00
beacon_monitor_measurement_controller.ex feat(api): ingest endpoint for propmonitor beacon measurements 2026-05-13 16:07:04 -05:00
contact_controller.ex fix(security,perf): address 9 audit findings (access control, DoS, crashes) 2026-05-11 18:53:21 -05:00
contact_json.ex feat: secure /api/v1 REST API for regular-user actions 2026-05-09 08:59:54 -05:00
me_controller.ex fix(security,test): viewer-aware profile queries + create_contact ordering + valkey test isolation 2026-05-12 08:49:08 -05:00
profile_controller.ex fix(security,test): viewer-aware profile queries + create_contact ordering + valkey test isolation 2026-05-12 08:49:08 -05:00
score_controller.ex feat: secure /api/v1 REST API for regular-user actions 2026-05-09 08:59:54 -05:00
token_json.ex feat: secure /api/v1 REST API for regular-user actions 2026-05-09 08:59:54 -05:00
user_json.ex feat: secure /api/v1 REST API for regular-user actions 2026-05-09 08:59:54 -05:00