summaryrefslogtreecommitdiffstats
path: root/src/json.h
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-06-08 17:24:33 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-07-01 12:09:16 +0200
commit86ccc3c2e837762363559d5aab2fcb3a9202fa6b (patch)
treeeb445a9051e3b0db03888aad3f11040e43d4c8d2 /src/json.h
parent9ecf638ba28ebcdecac69b04518aa67b576e30dc (diff)
#915 Add POST /repository/add
This method adds a new repository to the database. Request: POST /repository/add { "name": "Repository 1", "ip": "192.168.56.10" } Response: 200 OK
Diffstat (limited to 'src/json.h')
-rw-r--r--src/json.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/json.h b/src/json.h
index 8ed50e0..881a10a 100644
--- a/src/json.h
+++ b/src/json.h
@@ -131,4 +131,9 @@ struct og_procedure {
int og_json_parse_procedure(json_t *element, struct og_procedure *proc);
+struct og_repository {
+ const char *name;
+ const char *ip;
+};
+
#endif