summaryrefslogtreecommitdiffstats
path: root/afb-source/ctl-apidef.json
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-08-24 10:27:04 +0200
committerFulup Ar Foll <fulup@iot.bzh>2017-08-25 22:37:19 +0200
commit16d177bf418fb22794fbbd4f1aac489cf82d7f48 (patch)
tree35aee7d9b3ae226fc5612b9ac6848d7f32345362 /afb-source/ctl-apidef.json
parent5fe4b5cac53608f27d1077eb45200cc1e5980140 (diff)
Clean up module naming
Diffstat (limited to 'afb-source/ctl-apidef.json')
-rw-r--r--afb-source/ctl-apidef.json191
1 files changed, 106 insertions, 85 deletions
diff --git a/afb-source/ctl-apidef.json b/afb-source/ctl-apidef.json
index e2207d0..a8b433e 100644
--- a/afb-source/ctl-apidef.json
+++ b/afb-source/ctl-apidef.json
@@ -97,17 +97,17 @@
}
},
"x-permissions": {
- "monitor": {
- "permission": "urn:AGL:permission:audio:public:monitor"
+ "control": {
+ "permission": "urn:AGL:permission:audio:public:control"
},
- "multimedia": {
- "permission": "urn:AGL:permission:audio:public:monitor"
+ "dispatch": {
+ "permission": "urn:AGL:permission:audio:public:dispatch"
},
- "navigation": {
- "permission": "urn:AGL:permission:audio:public:monitor"
+ "request": {
+ "permission": "urn:AGL:permission:audio:public:request"
},
- "emergency": {
- "permission": "urn:AGL:permission:audio:public:emergency"
+ "debug": {
+ "permission": "urn:AGL:permission:audio:public:debug"
}
},
"responses": {
@@ -124,22 +124,20 @@
}
},
"paths": {
- "/monitor": {
- "description": "Subcribe Audio Agent Policy Control End",
+ "/ping": {
+ "description": "Ping Binding",
"get": {
"x-permissions": {
- "$ref": "#/components/x-permissions/monitor"
+ "$ref": "#/components/x-permissions/control"
},
- "parameters": [
- {
- "in": "query",
- "name": "event_patern",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "parameters": [{
+ "in": "query",
+ "name": "args",
+ "required": false,
+ "schema": {
+ "type": "json"
}
- ],
+ }],
"responses": {
"200": {
"$ref": "#/components/responses/200"
@@ -147,82 +145,105 @@
}
}
},
- "/dispatch": {
- "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"
+ "/subscribe": {
+ "description": "Subcribe Audio Agent Policy Control End",
+ "get": {
+ "x-permissions": {
+ "$ref": "#/components/x-permissions/control"
+ },
+ "parameters": [
+ {
+ "in": "query",
+ "name": "event_patern",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/200"
}
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/200"
}
}
- }
- },
- "/request": {
- "description": "Execute LUA string script.",
- "get": {
- "x-permissions": {
- "$ref": "#/components/x-permissions/navigation"
- },
- "parameters": [
- {
- "in": "query",
- "name": "func",
- "required": true,
- "schema": {
- "type": "string"
- }
+ },
+ "/dispatch": {
+ "description": "Request Access to Navigation Audio Channel.",
+ "get": {
+ "x-permissions": {
+ "$ref": "#/components/x-permissions/dispatch"
},
- {
- "in": "query",
- "name": "args",
- "required": false,
- "schema": {
- "type": "array"
+ "parameters": [
+ {
+ "in": "query",
+ "name": "zone",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/200"
}
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/200"
}
}
- }
- },
- "/debuglua": {
- "description": "Execute LUA string script.",
- "get": {
- "x-permissions": {
- "$ref": "#/components/x-permissions/navigation"
- },
- "parameters": [
- {
- "in": "query",
- "name": "filename",
- "required": true,
- "schema": {
- "type": "string"
+ },
+ "/request": {
+ "description": "Execute LUA string script.",
+ "get": {
+ "x-permissions": {
+ "$ref": "#/components/x-permissions/request"
+ },
+ "parameters": [
+ {
+ "in": "query",
+ "name": "func",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "args",
+ "required": false,
+ "schema": {
+ "type": "array"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/200"
}
}
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/200"
+ }
+ },
+ "/debuglua": {
+ "description": "Execute LUA string script.",
+ "get": {
+ "x-permissions": {
+ "$ref": "#/components/x-permissions/debug"
+ },
+ "parameters": [
+ {
+ "in": "query",
+ "name": "filename",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/200"
+ }
}
}
}
}
- }
}