ogserver/src
OpenGnSys Support Team 9891276246 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.
2024-06-12 11:38:08 +02:00
..
cfg.c ogServer is AGPLv3+ 2021-05-04 17:59:11 +02:00
cfg.h #988 remove legacy configuration 2020-10-07 11:17:00 +02:00
client.c client: update cache after image/restore 2024-05-30 11:31:42 +02:00
client.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
core.c core: remove useless log when ogClient connects to server 2023-11-23 22:08:49 +01:00
core.h core: restrict rest API to 127.0.0.1 2023-11-14 11:25:42 +01:00
dbi.c rest: Add /center/info 2024-06-12 11:38:08 +02:00
dbi.h rest: Add /center/info 2024-06-12 11:38:08 +02:00
json.c client: store image cache data in database 2024-05-30 11:16:13 +02:00
json.h client: store image cache data in database 2024-05-30 11:16:13 +02:00
legacy.c missing copyright header to new src/legacy.c file 2021-06-09 23:17:51 +02:00
legacy.h #915 Add schedule/command 2021-06-09 13:41:28 +02:00
list.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
main.c main: use etc folder instead of cfg to store .json configuration file 2023-11-14 11:26:19 +01:00
ogAdmLib.c #915 remove dead code in ogAdmLib 2021-12-22 17:30:04 +01:00
ogAdmLib.h #915 consolidate WoL sender function 2021-12-22 17:30:04 +01:00
ogAdmServer.c src: replace old function to update image information 2024-05-29 17:19:20 +02:00
ogAdmServer.h src: replace old function to update image information 2024-05-29 17:19:20 +02:00
rest.c rest: Add /center/info 2024-06-12 11:38:08 +02:00
rest.h rest: Add /center/info 2024-06-12 11:38:08 +02:00
schedule.c ogServer is AGPLv3+ 2021-05-04 17:59:11 +02:00
schedule.h #1052 Populate session column when adding actions 2021-07-22 15:52:12 +02:00
schema.c schema: add cache table to store image files in client 2024-05-29 17:19:18 +02:00
utils.c ogServer is AGPLv3+ 2021-05-04 17:59:11 +02:00
utils.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
wol.c #915 consolidate WoL sender function 2021-12-22 17:30:04 +01:00
wol.h #915 consolidate WoL sender function 2021-12-22 17:30:04 +01:00