summaryrefslogtreecommitdiffstats
path: root/src/rest.h
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-06-12 11:37:36 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-06-12 11:38:08 +0200
commit9891276246b96ca1bc43383b3e434a7d8f0ed91f (patch)
tree8033d0ba7cded6fde5f8474ebd09aebc90bd2ca7 /src/rest.h
parent51f275a867b4a7007ea6e2aa93f350f08be2680e (diff)
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.
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 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,