From 9891276246b96ca1bc43383b3e434a7d8f0ed91f Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Wed, 12 Jun 2024 11:37:36 +0200 Subject: rest: Add /center/info Add URI to allow a GET request to obtain info about a center (name, id and comment of the center as of now). To use this uri, simply send a GET request with a json containing the id of the center whose info needs to be consulted: curl -X GET -H "Authorization: $API_KEY" http://127.0.0.1:8888/center/info -d '{"id":1}' based on work from Javier Hernandez. --- 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 1c5cc47..86cb763 100644 --- a/src/rest.h +++ b/src/rest.h @@ -131,6 +131,7 @@ enum og_rest_uri { OG_URI_CENTER_ADD, OG_URI_CENTER_UPDATE, OG_URI_CENTER_DELETE, + OG_URI_CENTER_INFO, OG_URI_ROOM_ADD, OG_URI_ROOM_UPDATE, OG_URI_ROOM_DELETE, -- cgit v1.2.3-18-g5258