X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=low-can-binding%2Fbinding%2Flow-can-apidef.json;h=e647bd24204d336d7263be5c8b499155c8f7e9cb;hb=88077fb4b383cf7f35093b6cc0d2d9d86c6f1bf3;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..e647bd24 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", @@ -12,7 +12,7 @@ "postfix": "", "start": null , "onevent": null, - "init": "initv2", + "init": "init_binding", "scope": "", "private": false } @@ -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,10 +115,9 @@ "responses": { "200": {"$ref": "#/components/responses/200"} } - } - }, + }, "/unsubscribe": { - "description": "Unsubscribe previously suscribed signals.", + "description": "Unsubscribe previously subscribed signals.", "parameters": [ { "in": "query", @@ -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 @@ } } } - - +}