diff options
author | Javier Hernandez <jhernandez@soleta.eu> | 2023-11-23 13:32:59 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-11-24 11:02:52 +0100 |
commit | 5ff92a826efad2acb4589755fb78fa4cdbda2614 (patch) | |
tree | dca73c2c55e06b2a70d77912f1116002b0d256c1 /src/rest.h | |
parent | 0ab4721714dfbe84099967bfea23d1ecb6df891a (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, |