๐จ Messages App
RESTful API for Shift Messaging
A standalone messaging service for crew shift management. Built with SvelteKit, designed to be independent and scalable.
Features
- โ Sign-in Messages - Track crew member arrivals
- ๐จ Alerts - Urgent notifications with priorities (normal/high/urgent)
- ๐ Requests - Equipment, supply, and resource requests
- ๐ Toast Notifications - Real-time visual alerts
- ๐ฆ Acknowledgment Tracking - See who's read important messages
- ๐ Archive System - Move completed messages to JSONB storage
API Endpoints (Generic)
GET /api/messages Fetch messages with flexible filtering (source_app, event_type, priority, context fields)
POST /api/messages Create a new message with any context data (no foreign key constraints)
POST /api/messages/:id/acknowledge Add acknowledgment to message metadata
POST /api/messages/archive Archive messages by flexible filter criteria
๐ฏ Key Feature: No Foreign Keys!
This API accepts any key-value pairs in the context field. No database relationships to maintain. Just send your data and query it back.