Complete REST API documentation for sfsEdgeStore.
http://localhost:8081
GET /health
GET /healthz
Response:
{
"status": "healthy",
"version": "1.0.0",
"uptime": "1h23m45s"
}
GET /ready
GET /api/status
GET /api/resources/status
GET /metrics
GET /api/readings
| Parameter | Type | Required | Description |
|---|---|---|---|
| deviceName | string | No | Filter by device name |
| startTime | string | No | ISO 8601 timestamp |
| endTime | string | No | ISO 8601 timestamp |
| limit | int | No | Limit result count |
Example:
curl "http://localhost:8081/api/readings?deviceName=Device001&limit=10"
Response:
{
"count": 10,
"readings": [...]
}
GET /api/device-status
GET /api/config/get
POST /api/config/update
POST /api/config/reload
POST /api/config/oneclick
POST /api/backup
| Parameter | Type | Description |
|---|---|---|
| path | string | Backup directory (default: ./backups) |
POST /api/restore
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | string | Yes | Path to backup file |
GET /api/export/csv
GET /api/export/json
GET /api/export/sql
POST /api/import/csv
POST /api/import/json
GET /api/subscription/status
POST /api/subscription/test
GET /api/subscription/themes
GET /api/alerts
GET /api/alert-groups
GET /api/alerts/notifier/status
POST /api/alerts/test
GET /api/retention/status
POST /api/retention/cleanup
GET /api/templates
POST /api/templates/apply
Body:
{
"industry": "motor"
}
GET /api/baselines
POST /api/baselines/calculate
Body:
{
"deviceName": "temperature-sensor-001",
"readingName": "temperature"
}
POST /api/auth/create-key
GET /api/auth/list-keys
POST /api/auth/revoke-key
GET /api/encryption/status
POST /api/encryption/rotate-key
GET /api/license
POST /api/config/mqtt
WS /ws
Connect via WebSocket for real-time data streaming.