aboutsummaryrefslogtreecommitdiffstats
path: root/signal-composer-binding/signal-composer-apidef.json
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-12-18 16:40:50 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-18 17:40:02 +0100
commit15efef0b066a1416778a304ed41cdf3ecb3209ef (patch)
tree507c2eb9ff510d20e0ea3fa7d6b5b2e176364232 /signal-composer-binding/signal-composer-apidef.json
parent1b3411359d6a0e53f12811436a5410104816da34 (diff)
More security to add new signals/source at runtime
Also renamed loadConf to addObjects to avoid confusion with loadConf at init time. Improve file research if fullpath not procided by searching in the CONTROL_CONFIG_PATH. Change-Id: I8e541ff7437f0378bcdc7215ff9f391dcce6db9f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/signal-composer-apidef.json')
-rw-r--r--signal-composer-binding/signal-composer-apidef.json20
1 files changed, 14 insertions, 6 deletions
diff --git a/signal-composer-binding/signal-composer-apidef.json b/signal-composer-binding/signal-composer-apidef.json
index fffeda3..cf45aec 100644
--- a/signal-composer-binding/signal-composer-apidef.json
+++ b/signal-composer-binding/signal-composer-apidef.json
@@ -82,6 +82,9 @@
}
},
"x-permissions": {
+ "addObjects": {
+ "permission": "urn:AGL:permission::platform:composer:addObjects"
+ }
},
"responses": {
"200": {
@@ -137,8 +140,16 @@
"200": {"$ref": "#/components/responses/200"}
}
},
- "/loadConf": {
- "description": "Load config file in directory passed as argument searching for pattern 'sig' in filename",
+ "/addObjects": {
+ "description": "Load new objects from an additional config file designated by JSON argument with the key 'file'.",
+ "get": {
+ "x-permissions": {
+ "$ref": "#/components/x-permissions/addObjects"
+ },
+ "responses": {
+ "200": {"$ref": "#/components/responses/200"}
+ }
+ },
"parameters": [
{
"in": "query",
@@ -146,10 +157,7 @@
"required": true,
"schema": { "type": "string"}
}
- ],
- "responses": {
- "200": {"$ref": "#/components/responses/200"}
- }
+ ]
}
}
}