X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=ucs2-afb%2Fucs_apidef.json;h=954e27523aa8ef2f37e8a0aed18e21510cab5168;hb=24552c17d18bb703abe256f837c41cf694649f7e;hp=b8d6311593a12d81f2175fbfa53703fe636eff1c;hpb=1b245760ed8a3476a9288e39965a23e1d50b085a;p=apps%2Fagl-service-unicens.git diff --git a/ucs2-afb/ucs_apidef.json b/ucs2-afb/ucs_apidef.json index b8d6311..954e275 100644 --- a/ucs2-afb/ucs_apidef.json +++ b/ucs2-afb/ucs_apidef.json @@ -12,7 +12,8 @@ "postfix": "", "start": null , "onevent": null, - "init": null, + "preinit": null, + "init": "ucs2_initbinding", "scope": "", "private": false } @@ -141,7 +142,18 @@ } }, "/subscribe": { - "description": "Subscribe to UNICENS Events.", + "description": "Subscribe to network events.", + "get": { + "x-permissions": { + "$ref": "#/components/x-permissions/monitor" + }, + "responses": { + "200": {"$ref": "#/components/responses/200"} + } + } + }, + "/subscriberx": { + "description": "Subscribe to Rx control message events.", "get": { "x-permissions": { "$ref": "#/components/x-permissions/monitor" @@ -162,7 +174,48 @@ "in": "query", "name": "node", "required": true, - "schema": { + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "in": "query", + "name": "data", + "required": true, + "schema": { + "type": "array", + "format": "int32" + }, + "style": "simple" + } + ], + "responses": { + "200": {"$ref": "#/components/responses/200"} + } + } + }, + "/sendmessage": { + "description": "Transmits a control message to a node.", + "get": { + "x-permissions": { + "$ref": "#/components/x-permissions/monitor" + }, + "parameters": [ + { + "in": "query", + "name": "node", + "required": true, + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "in": "query", + "name": "msgid", + "required": true, + "schema": { "type": "integer", "format": "int32" } @@ -171,7 +224,7 @@ "in": "query", "name": "data", "required": true, - "schema": { + "schema": { "type": "array", "format": "int32" },