3 "$schema": "http:iot.bzh/download/openapi/schema-3.0/default-schema.json",
6 "title": "low-level-can-service",
8 "x-binding-c-generator": {
22 "url": "ws://{host}:{port}/api/monitor",
23 "description": "Low level CAN 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:low-can:public:monitor"
88 "permission": "urn:AGL:permission::platform:can:write "
93 "description": "A complex object array response",
97 "$ref": "#/components/schemas/afb-reply"
106 "description": "Subscribe to CAN signals events",
112 "schema": { "type": "string" }
116 "200": {"$ref": "#/components/responses/200"}
120 "description": "Unsubscribe previously suscribed signals.",
126 "schema": { "type": "string" }
130 "200": {"$ref": "#/components/responses/200"}
134 "description": "get a current value of CAN message",
140 "schema": { "type": "string" }
144 "200": {"$ref": "#/components/responses/200"}
148 "description": "get a supported CAN message list",
150 "200": {"$ref": "#/components/responses/200"}
154 "description": "Authenticate session to be raise Level Of Assurance.",
157 "$ref": "#/components/x-permissions/write"
160 "200": {"$ref": "#/components/responses/200"}
165 "description": "Write a CAN messages to the CAN bus.",
175 "schema": { "type": "string" }
181 "schema": { "type": "array" },
187 "schema": { "type": "string" }
193 "schema": { "type": "string" }
199 "schema": { "type": "string" }
205 "name": "signal_name",
207 "schema": { "type": "string" }
211 "name": "signal_value",
213 "schema": { "type": "integer" }
217 "200": {"$ref": "#/components/responses/200"}