summaryrefslogtreecommitdiffstats
path: root/signal-composer-binding/signal-composer-apidef.h
diff options
context:
space:
mode:
Diffstat (limited to 'signal-composer-binding/signal-composer-apidef.h')
-rw-r--r--signal-composer-binding/signal-composer-apidef.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/signal-composer-binding/signal-composer-apidef.h b/signal-composer-binding/signal-composer-apidef.h
index b480430..713d2d1 100644
--- a/signal-composer-binding/signal-composer-apidef.h
+++ b/signal-composer-binding/signal-composer-apidef.h
@@ -32,16 +32,19 @@ static const char _afb_description_v2_signal_composer[] =
"\"event\",\"required\":false,\"schema\":{\"type\":\"string\"}}],\"respon"
"ses\":{\"200\":{\"$ref\":\"#/components/responses/200\"}}},\"/get\":{\"d"
"escription\":\"Get informations about a resource or element\",\"response"
- "s\":{\"200\":{\"$ref\":\"#/components/responses/200\"}}},\"/loadConf\":{"
- "\"description\":\"Load config file in directory passed as argument searc"
- "hing for pattern 'sig' in filename\",\"parameters\":[{\"in\":\"query\",\""
- "name\":\"path\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"r"
- "esponses\":{\"200\":{\"$ref\":\"#/components/responses/200\"}}}}}"
+ "s\":{\"200\":{\"$ref\":\"#/components/responses/200\"}}},\"/list\":{\"de"
+ "scription\":\"List all signals already configured\",\"responses\":{\"200"
+ "\":{\"$ref\":\"#/components/responses/200\"}}},\"/loadConf\":{\"descript"
+ "ion\":\"Load config file in directory passed as argument searching for p"
+ "attern 'sig' in filename\",\"parameters\":[{\"in\":\"query\",\"name\":\""
+ "path\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\""
+ ":{\"200\":{\"$ref\":\"#/components/responses/200\"}}}}}"
;
void subscribe(struct afb_req req);
void unsubscribe(struct afb_req req);
void get(struct afb_req req);
+ void list(struct afb_req req);
void loadConf(struct afb_req req);
static const struct afb_verb_v2 _afb_verbs_v2_signal_composer[] = {
@@ -67,6 +70,13 @@ static const struct afb_verb_v2 _afb_verbs_v2_signal_composer[] = {
.session = AFB_SESSION_NONE_V2
},
{
+ .verb = "list",
+ .callback = list,
+ .auth = NULL,
+ .info = "List all signals already configured",
+ .session = AFB_SESSION_NONE_V2
+ },
+ {
.verb = "loadConf",
.callback = loadConf,
.auth = NULL,