From 5ff92a826efad2acb4589755fb78fa4cdbda2614 Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Thu, 23 Nov 2023 13:32:59 +0100 Subject: rest: add POST repository/update 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" }' --- src/rest.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rest.h') 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, -- cgit v1.2.3-18-g5258