prop/lib/microwaveprop_web/controllers
Graham McIntire c6d2c48264
feat: secure /api/v1 REST API for regular-user actions
Adds bearer-token authenticated REST API at /api/v1 covering every
action a non-admin user can perform on the website: contact + beacon
submission, beacon-monitor management, propagation queries, profile
read/update, and self-service API token issuance/revocation.

Security: SHA-256-hashed bearer tokens (mwp_ prefix, plaintext shown
once at creation), RFC 9457 problem+json error responses, RFC 9651
RateLimit-* headers backed by an ETS bucket (600/min per token,
60/min per anonymous IP, 30/min on /auth/tokens), private-contact
filtering by viewer.

Docs at docs/api/README.md (prose reference) and docs/api/openapi.yaml
(OpenAPI 3.1 spec covering every endpoint, response, and schema).

Tests: 124 new tests across schema, plug, error renderer, rate
limiter, fallback, and every controller. 16/17 API modules at 100%
line coverage; FallbackController at 87.5% (one defmodule line, an
Erlang-cover artifact for action_fallback-only modules).
2026-05-09 08:59:54 -05:00
..
api/v1 feat: secure /api/v1 REST API for regular-user actions 2026-05-09 08:59:54 -05:00
page_html initial 2026-03-28 11:28:47 -05:00
user_registration_html feat(design): apply NTMS design system tokens 2026-04-17 17:34:15 -05:00
user_reset_password_html feat(auth): self-service password reset 2026-04-18 08:42:35 -05:00
user_session_html feat(auth): self-service password reset 2026-04-18 08:42:35 -05:00
user_settings_html feat(accounts): auto-prefill home QTH from QRZ on register + backfill on boot 2026-04-25 17:03:01 -05:00
agent_skills_controller.ex feat(agent-discovery): Link/markdown/content-signal/api-catalog/skills 2026-04-17 12:09:05 -05:00
api_catalog_controller.ex feat(agent-discovery): Link/markdown/content-signal/api-catalog/skills 2026-04-17 12:09:05 -05:00
beacon_monitor_controller.ex Add beacon monitor registration and fix prod SMTP 2026-04-08 11:30:28 -05:00
contact_map_controller.ex Serve /contacts/map payload via HTTP endpoint, parallel hydrate 2026-04-12 13:10:51 -05:00
error_html.ex initial 2026-03-28 11:28:47 -05:00
error_json.ex initial 2026-03-28 11:28:47 -05:00
health_controller.ex fix(probes): stop DB saturation from SIGKILLing every pod 2026-04-21 16:00:04 -05:00
page_controller.ex Rename qsos to contacts throughout codebase, keep DB table name 2026-04-01 11:25:04 -05:00
page_html.ex initial 2026-03-28 11:28:47 -05:00
scores_controller.ex perf(map): /scores/cells binary endpoint, client-side fetch + band/time prefetch 2026-04-29 14:27:20 -05:00
user_registration_controller.ex Add password auth with callsign + email confirmation 2026-04-08 10:21:40 -05:00
user_registration_html.ex Add password auth with callsign + email confirmation 2026-04-08 10:21:40 -05:00
user_reset_password_controller.ex fix(dialyzer): clear 125+ warnings under strict flags 2026-04-21 10:30:06 -05:00
user_reset_password_html.ex feat(auth): self-service password reset 2026-04-18 08:42:35 -05:00
user_session_controller.ex Add password auth with callsign + email confirmation 2026-04-08 10:21:40 -05:00
user_session_html.ex Add password auth with callsign + email confirmation 2026-04-08 10:21:40 -05:00
user_settings_controller.ex feat(accounts): add Home QTH section to user settings page 2026-04-25 16:51:54 -05:00
user_settings_html.ex Add password auth with callsign + email confirmation 2026-04-08 10:21:40 -05:00
weather_tile_controller.ex feat(weather): /weather-ca endpoint shows HRDPS-only Canadian data 2026-04-30 12:08:48 -05:00