Initial Ktor backend skeleton with ProtocolMessage DTO, REST and WebSocket

This commit is contained in:
2026-04-01 18:29:10 +03:00
parent b0a48e94bd
commit 6f3584fe6d
16 changed files with 80 additions and 19 deletions

12
protocol/schema.json Normal file
View File

@@ -0,0 +1,12 @@
{
"type": "object",
"required": ["v", "id", "type", "ts", "deviceId", "payload"],
"properties": {
"v": { "type": "integer" },
"id": { "type": "string" },
"type": { "type": "string" },
"ts": { "type": "integer" },
"deviceId": { "type": "string" },
"payload": { "type": "object" }
}
}