summaryrefslogtreecommitdiffstats
path: root/src/rest.h
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2023-11-23 13:32:59 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2023-11-24 11:02:52 +0100
commit5ff92a826efad2acb4589755fb78fa4cdbda2614 (patch)
treedca73c2c55e06b2a70d77912f1116002b0d256c1 /src/rest.h
parent0ab4721714dfbe84099967bfea23d1ecb6df891a (diff)
rest: add POST repository/updatev1.2.5-3
Add POST repository/update request to update repository. Repository is identified by its id, that is provided in the payload. This can be tested with curl like: curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/repository/update -d '{ "repo_id" : 16, "center" : 3, "name": "newName", "ip":"127.0.0.1" }'
Diffstat (limited to 'src/rest.h')
-rw-r--r--src/rest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rest.h b/src/rest.h
index 5e21b39..6cd69be 100644
--- a/src/rest.h
+++ b/src/rest.h
@@ -108,6 +108,7 @@ enum og_rest_uri {
OG_URI_SOFTWARE,
OG_URI_REPO,
OG_URI_REPO_ADD,
+ OG_URI_REPO_UPDATE,
OG_URI_REPO_DELETE,
OG_URI_IMAGES,
OG_URI_IMAGE_CREATE,