diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-06-08 17:24:33 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-07-01 12:09:16 +0200 |
commit | 86ccc3c2e837762363559d5aab2fcb3a9202fa6b (patch) | |
tree | eb445a9051e3b0db03888aad3f11040e43d4c8d2 /src/json.h | |
parent | 9ecf638ba28ebcdecac69b04518aa67b576e30dc (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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |