rtmc-be/README.md

31 lines
628 B
Markdown
Raw Permalink Normal View History

2024-08-27 22:10:18 +00:00
# rfc
```text
GET /api/ws
2024-08-28 03:42:21 +00:00
GET /api/cc/{uuid}/keypad/code
GET /api/cc/{uuid}/keypad/get_user_info/{uid}
POST /api/cc/{uuid}/keypad/log/door_open/{uid}
POST /api/cc/{uuid}/keypad/set_code
POST /api/cc/{uuid}/core/reboot
POST /api/cc/{uuid}/core/update
2024-08-27 22:10:18 +00:00
```
## websocket
```json
[
0, // op
{
// data,
}
]
```
on connect:
- get client session code, to be used with api
- get explicitly set computer name from db, by the CC:T computer id, or randomly generated UUID thats set on SW install,
- on connect computer sends its module type eg. keypad, and gets extra info related to it, like: code, current.