spaxel/mothership/internal/api
jedarden f6d1c6f606 feat: implement REST API endpoints for settings, zones, portals, triggers, notifications, replay
- Added SettingsHandler with GET/PATCH /api/settings for configurable settings
- Added ZonesHandler with full CRUD for zones (GET/POST/PUT/DELETE /api/zones)
- Added PortalsHandler with full CRUD for portals (GET/POST/PUT/DELETE /api/portals)
- Added TriggersHandler with full CRUD for automation triggers including test endpoint
- Added NotificationsHandler for notification channel config and test notifications
- Added ReplayHandler for CSI replay sessions (start/stop/seek/tune endpoints)
- All endpoints follow OpenAPI-style patterns with appropriate godoc comments
- Settings persist to SQLite across restarts
- Zone/portal updates reflected in live 3D view via WebSocket

Endpoints implemented:
  GET/PATCH  /api/settings
  GET/POST/PUT/DELETE /api/zones
  GET/POST/PUT/DELETE /api/portals
  GET/POST/PUT/DELETE /api/triggers
  POST /api/triggers/{id}/test
  GET/PATCH /api/notifications/config
  POST /api/notifications/test
  GET/POST /api/replay/sessions
  POST /api/replay/start
  POST /api/replay/stop
  POST /api/replay/seek
  POST /api/replay/tune

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 11:22:02 -04:00
..
notifications.go feat: implement REST API endpoints for settings, zones, portals, triggers, notifications, replay 2026-04-06 11:22:02 -04:00
replay.go feat: implement REST API endpoints for settings, zones, portals, triggers, notifications, replay 2026-04-06 11:22:02 -04:00
settings.go feat: implement REST API endpoints for settings, zones, portals, triggers, notifications, replay 2026-04-06 11:22:02 -04:00
triggers.go feat: implement REST API endpoints for settings, zones, portals, triggers, notifications, replay 2026-04-06 11:22:02 -04:00
zones.go feat: implement REST API endpoints for settings, zones, portals, triggers, notifications, replay 2026-04-06 11:22:02 -04:00