3 "$schema": "http:iot.bzh/download/openapi/schema-3.0/default-schema.json",
8 "x-binding-c-generator": {
15 "preinit": "load_config",
16 "init": "init_binding",
23 "url": "ws://{host}:{port}/api/monitor",
24 "description": "Low level CAN 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:low-can:public:monitor"
89 "permission": "urn:AGL:permission::platform:can:write "
94 "description": "A complex object array response",
98 "$ref": "#/components/schemas/afb-reply"
107 "description": "Subscribe to CAN signals events",
113 "schema": { "type": "string" }
117 "200": {"$ref": "#/components/responses/200"}
121 "description": "Unsubscribe previously subscribed signals.",
127 "schema": { "type": "string" }
131 "200": {"$ref": "#/components/responses/200"}
135 "description": "get a current value of CAN message",
141 "schema": { "type": "string" }
145 "200": {"$ref": "#/components/responses/200"}
149 "description": "get a supported CAN message list",
151 "200": {"$ref": "#/components/responses/200"}
155 "description": "Authenticate session to be raise Level Of Assurance.",
158 "$ref": "#/components/x-permissions/write"
161 "200": {"$ref": "#/components/responses/200"}
166 "description": "Write a CAN messages to the CAN bus.",
176 "schema": { "type": "string" }
182 "schema": { "type": "array" },
188 "schema": { "type": "string" }
194 "schema": { "type": "string" }
200 "schema": { "type": "string" }
206 "name": "signal_name",
208 "schema": { "type": "string" }
212 "name": "signal_value",
214 "schema": { "type": "integer" }
218 "200": {"$ref": "#/components/responses/200"}