X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=low-can-binding%2Fbinding%2Flow-can-apidef.json;h=854bdd4a4ff94f7620270c74241f368d2dc22ace;hb=01715613f16113017529c51703f3e5d90918c4c5;hp=f72178a1e7d4c264671c2aaa1614eff02d5fcd1a;hpb=bd678860b97c8a2c06d60fdb9f963022f3ba6e68;p=apps%2Fagl-service-can-low-level.git diff --git a/low-can-binding/binding/low-can-apidef.json b/low-can-binding/binding/low-can-apidef.json index f72178a1..854bdd4a 100644 --- a/low-can-binding/binding/low-can-apidef.json +++ b/low-can-binding/binding/low-can-apidef.json @@ -3,7 +3,7 @@ "$schema": "http:iot.bzh/download/openapi/schema-3.0/default-schema.json", "info": { "description": "", - "title": "low-level-can-service", + "title": "low-can", "version": "4.0", "x-binding-c-generator": { "api": "low-can", @@ -81,14 +81,11 @@ } }, "x-permissions": { - "config": { - "permission": "urn:AGL:permission:low-can:public:config" - }, "monitor": { "permission": "urn:AGL:permission:low-can:public:monitor" }, "write": { - "permission": "urn:AGL:permission:low-can:platform:write" + "permission": "urn:AGL:permission::platform:can:write " } }, "responses": { @@ -118,8 +115,7 @@ "responses": { "200": {"$ref": "#/components/responses/200"} } - } - }, + }, "/unsubscribe": { "description": "Unsubscribe previously suscribed signals.", "parameters": [ @@ -134,6 +130,26 @@ "200": {"$ref": "#/components/responses/200"} } }, + "/get": { + "description": "get a current value of CAN message", + "parameters": [ + { + "in": "query", + "name": "event", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": {"$ref": "#/components/responses/200"} + } + }, + "/list": { + "description": "get a supported CAN message list", + "responses": { + "200": {"$ref": "#/components/responses/200"} + } + }, "/auth": { "description": "Authenticate session to be raise Level Of Assurance.", "get": { @@ -149,7 +165,7 @@ "description": "Write a CAN messages to the CAN bus.", "get": { "x-permissions": { - "$ref": "#/components/x-permissions/write" + "LOA": 1 }, "parameters": [ { @@ -203,5 +219,4 @@ } } } - - +}