diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-09-16 19:52:41 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-14 11:00:25 +0100 |
commit | 5bbc6cb56995d23cb8a4eb584ef0161be092da1f (patch) | |
tree | 0a63676d64a67f4323ed5e7fce1be147f95c2e69 /signal-composer-binding/signal-composer-apidef.h | |
parent | de24d7de2b87f5d8164f49fb130f8693b32362a0 (diff) |
Adding new verb, implemented basic signal method
Change-Id: I453ddc0ca374436275e7d76cdc27b3d843a2770f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/signal-composer-apidef.h')
-rw-r--r-- | signal-composer-binding/signal-composer-apidef.h | 20 |
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, |