3 "$schema": "http:iot.bzh/download/openapi/schema-3.0/default-schema.json",
8 "x-binding-c-generator": {
16 "init": "ucs2_initbinding",
23 "url": "ws://{host}:{port}/api/monitor",
24 "description": "Unicens2 API.",
27 "default": "localhost"
35 "$ref": "#/components/schemas/afb-event"
43 "$ref": "#/components/schemas/afb-reply-v2"
46 "$ref": "#/components/schemas/afb-event-v2"
49 "title": "Generic response.",
51 "required": [ "jtype", "request" ],
59 "required": [ "status" ],
61 "status": { "type": "string" },
62 "info": { "type": "string" },
63 "token": { "type": "string" },
64 "uuid": { "type": "string" },
65 "reqid": { "type": "string" }
68 "response": { "type": "object" }
73 "required": [ "jtype", "event" ],
79 "event": { "type": "string" },
80 "data": { "type": "object" }
86 "permission": "urn:AGL:permission:UNICENS:public:initialise"
89 "permission": "urn:AGL:permission:UNICENS:public:monitor"
94 "description": "A complex object array response",
98 "$ref": "#/components/schemas/afb-reply"
107 "description": "List Config Files",
110 "$ref": "#/components/x-permissions/config"
117 "schema": { "type": "string" }
121 "200": {"$ref": "#/components/responses/200"}
126 "description": "configure Unicens2 lib from NetworkConfig.XML.",
129 "$ref": "#/components/x-permissions/config"
136 "schema": { "type": "string" }
140 "200": {"$ref": "#/components/responses/200"}
145 "description": "Subscribe to network events.",
148 "$ref": "#/components/x-permissions/monitor"
151 "200": {"$ref": "#/components/responses/200"}
156 "description": "Subscribe to Rx control message events.",
159 "$ref": "#/components/x-permissions/monitor"
162 "200": {"$ref": "#/components/responses/200"}
167 "description": "Writes I2C command to remote node.",
170 "$ref": "#/components/x-permissions/monitor"
194 "200": {"$ref": "#/components/responses/200"}
199 "description": "Transmits a control message to a node.",
202 "$ref": "#/components/x-permissions/monitor"
235 "200": {"$ref": "#/components/responses/200"}