Feeds API
Endpoints
| Route | Method | Purpose |
|---|---|---|
/api/v1/feeds/ | GET | List feeds |
/api/v1/feeds/ | POST | Create feed |
/api/v1/feeds/{id}/data | POST | Add sensor data to feed |
Data Models
Feed (Data Stream)
Feed:
- id (UUID)
- key, name, description
- device_id (FK to Device)
- group_id (FK to Group)
- visibility (private|public|shared)
- unit_type, unit_symbol
- last_value (latest sensor reading)
- status_notify, status_timeout
FeedValue (Time Series)
FeedValue:
- id (UUID)
- value (string, flexible storage)
- feed_id (FK)
- timestamp
- metadata (JSON)