diff options
author | fulup <fulup.arfoll@iot.bzh> | 2017-08-08 18:52:13 +0200 |
---|---|---|
committer | fulup <fulup.arfoll@iot.bzh> | 2017-08-08 18:52:13 +0200 |
commit | f817ce67ff6344f181d221c859e1cb2231a3dac4 (patch) | |
tree | ca95512377f7e2105a3a113c31c75abde0dd20ad /PolicyCtl-afb/polctl-apidef.json | |
parent | 33c2cd0236823d108cbb21af34b8d7843d117ac1 (diff) |
Early Draft of LUA integration
Diffstat (limited to 'PolicyCtl-afb/polctl-apidef.json')
-rw-r--r-- | PolicyCtl-afb/polctl-apidef.json | 175 |
1 files changed, 0 insertions, 175 deletions
diff --git a/PolicyCtl-afb/polctl-apidef.json b/PolicyCtl-afb/polctl-apidef.json deleted file mode 100644 index 65fe0ec..0000000 --- a/PolicyCtl-afb/polctl-apidef.json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "openapi": "3.0.0", - "$schema": "http:iot.bzh/download/openapi/schema-3.0/default-schema.json", - "info": { - "description": "", - "title": "polctl", - "version": "1.0", - "x-binding-c-generator": { - "api": "polctl", - "version": 2, - "prefix": "polctl_", - "postfix": "", - "start": null , - "onevent": null, - "init": "polctl_init", - "scope": "", - "private": false - } - }, - "servers": [ - { - "url": "ws://{host}:{port}/api/polctl", - "description": "Unicens2 API.", - "variables": { - "host": { - "default": "localhost" - }, - "port": { - "default": "1234" - } - }, - "x-afb-events": [ - { - "$ref": "#/components/schemas/afb-event" - } - ] - } - ], - "components": { - "schemas": { - "afb-reply": { - "$ref": "#/components/schemas/afb-reply-v2" - }, - "afb-event": { - "$ref": "#/components/schemas/afb-event-v2" - }, - "afb-reply-v2": { - "title": "Generic response.", - "type": "object", - "required": [ "jtype", "request" ], - "properties": { - "jtype": { - "type": "string", - "const": "afb-reply" - }, - "request": { - "type": "object", - "required": [ "status" ], - "properties": { - "status": { "type": "string" }, - "info": { "type": "string" }, - "token": { "type": "string" }, - "uuid": { "type": "string" }, - "reqid": { "type": "string" } - } - }, - "response": { "type": "object" } - } - }, - "afb-event-v2": { - "type": "object", - "required": [ "jtype", "event" ], - "properties": { - "jtype": { - "type": "string", - "const": "afb-event" - }, - "event": { "type": "string" }, - "data": { "type": "object" } - } - } - }, - "x-permissions": { - "monitor": { - "permission": "urn:AGL:permission:audio:public:monitor" - }, - "multimedia": { - "permission": "urn:AGL:permission:audio:public:monitor" - }, - "navigation": { - "permission": "urn:AGL:permission:audio:public:monitor" - }, - "emergency": { - "permission": "urn:AGL:permission:audio:public:emergency" - } - }, - "responses": { - "200": { - "description": "A complex object array response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/afb-reply" - } - } - } - } - } - }, - "paths": { - "/monitor": { - "description": "Subcribe Audio Agent Policy Control End", - "get": { - "x-permissions": { - "$ref": "#/components/x-permissions/monitor" - }, - "parameters": [ - { - "in": "query", - "name": "event_patern", - "required": true, - "schema": { "type": "string" } - } - ], - "responses": { - "200": {"$ref": "#/components/responses/200"} - } - } - }, - "/event_test": { - "description": "Pause Resume Test", - "get": { - "x-permissions": { - "$ref": "#/components/x-permissions/monitor" - }, - "parameters": [ - { - "in": "query", - "name": "delay", - "required": false, - "schema": { "type": "interger" } - }, - { - "in": "query", - "name": "count", - "required": false, - "schema": { "type": "interger" } - } - ], - "responses": { - "200": {"$ref": "#/components/responses/200"} - } - } - }, - "/navigation": { - "description": "Request Access to Navigation Audio Channel.", - "get": { - "x-permissions": { - "$ref": "#/components/x-permissions/navigation" - }, - "parameters": [ - { - "in": "query", - "name": "zone", - "required": false, - "schema": { "type": "string" } - } - ], - "responses": { - "200": {"$ref": "#/components/responses/200"} - } - } - } - } -} |