3 "$schema": "http:iot.bzh/download/openapi/schema-3.0/default-schema.json",
8 "x-binding-c-generator": {
22 "url": "ws://{host}:{port}/api/monitor",
23 "description": "Unicens2 API.",
26 "default": "localhost"
34 "$ref": "#/components/schemas/afb-event"
42 "$ref": "#/components/schemas/afb-reply-v2"
45 "$ref": "#/components/schemas/afb-event-v2"
48 "title": "Generic response.",
50 "required": [ "jtype", "request" ],
58 "required": [ "status" ],
60 "status": { "type": "string" },
61 "info": { "type": "string" },
62 "token": { "type": "string" },
63 "uuid": { "type": "string" },
64 "reqid": { "type": "string" }
67 "response": { "type": "object" }
72 "required": [ "jtype", "event" ],
78 "event": { "type": "string" },
79 "data": { "type": "object" }
85 "permission": "urn:AGL:permission:UNICENS:public:initialise"
88 "permission": "urn:AGL:permission:UNICENS:public:monitor"
93 "description": "A complex object array response",
97 "$ref": "#/components/schemas/afb-reply"
106 "description": "List Config Files",
109 "$ref": "#/components/x-permissions/config"
116 "schema": { "type": "string" }
120 "200": {"$ref": "#/components/responses/200"}
125 "description": "configure Unicens2 lib from NetworkConfig.XML.",
128 "$ref": "#/components/x-permissions/config"
135 "schema": { "type": "string" }
139 "200": {"$ref": "#/components/responses/200"}
144 "description": "Subscribe to UNICENS Events.",
147 "$ref": "#/components/x-permissions/monitor"
150 "200": {"$ref": "#/components/responses/200"}
155 "description": "Writes I2C command to remote node.",
158 "$ref": "#/components/x-permissions/monitor"
182 "200": {"$ref": "#/components/responses/200"}