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"
92 "permission": "urn:AGL:permission:UNICENS:public:controller"
97 "description": "A complex object array response",
101 "$ref": "#/components/schemas/afb-reply"
110 "description": "List Config Files",
113 "$ref": "#/components/x-permissions/config"
120 "schema": { "type": "string" }
124 "200": {"$ref": "#/components/responses/200"}
129 "description": "configure Unicens2 lib from NetworkConfig.XML.",
132 "$ref": "#/components/x-permissions/config"
139 "schema": { "type": "string" }
143 "200": {"$ref": "#/components/responses/200"}
148 "description": "Subscribe to network events.",
151 "$ref": "#/components/x-permissions/monitor"
154 "200": {"$ref": "#/components/responses/200"}
159 "description": "Subscribe to Rx control message events.",
162 "$ref": "#/components/x-permissions/monitor"
165 "200": {"$ref": "#/components/responses/200"}
170 "description": "Writes I2C command to remote node.",
173 "$ref": "#/components/x-permissions/monitor"
197 "200": {"$ref": "#/components/responses/200"}
202 "description": "Transmits a control message to a node.",
205 "$ref": "#/components/x-permissions/controller"
238 "200": {"$ref": "#/components/responses/200"}