31 lines
628 B
Markdown
31 lines
628 B
Markdown
# rfc
|
|
|
|
```text
|
|
GET /api/ws
|
|
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
|
|
```
|
|
|
|
## 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.
|
|
|
|
|
|
|