summaryrefslogtreecommitdiffstats
path: root/src/json.h
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2021-04-08 11:09:38 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-04-08 11:12:23 +0200
commit0212091e7fa0b58f353a05cfc671bd544e08e07e (patch)
treea435d356037748ab49687df4d940beca99a84693 /src/json.h
parent11d6e84b8e5dadf35d3a6b19ba980583a6ff3144 (diff)
#915 Add /center/add POST method
Adds POST method to add centers (organizational unit), required payload parameter is the name, and an additional comment is optional. {"name": "ACME"} {"name": "ACME", "comment": "Some comment"}
Diffstat (limited to 'src/json.h')
-rw-r--r--src/json.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/json.h b/src/json.h
index 978f7a8..d7bc072 100644
--- a/src/json.h
+++ b/src/json.h
@@ -81,6 +81,7 @@ struct og_msg_params {
const char *profile;
const char *cache;
const char *cache_size;
+ const char *comment;
bool echo;
struct og_partition partition_setup[OG_PARTITION_MAX];
struct og_sync_params sync_setup;