ogserver/src
Javier Sánchez Parra 29e7641e91 #915 Add /room/add POST method
Adds POST method to add rooms (labs), required payload parameters are
name, netmask and center; any additional attributes are optional.

Required JSON:
        { "center": 0,
          "name": "classroom10",
          "netmask": "255.255.255.0" }

Full JSON:
        { "center": 0,
          "name": "classroom11",
          "netmask": "255.255.255.0",
          "group": 0,
          "location": "First floor",
          "gateway": "192.168.56.1",
          "ntp": "hora.cica.es",
          "dns": "1.1.1.1",
          "remote": True }

This commit also adds unit tests for /room/add POST method.
2021-04-20 12:05:42 +02:00
..
cfg.c #988 remove legacy configuration 2020-10-07 11:17:00 +02:00
cfg.h #988 remove legacy configuration 2020-10-07 11:17:00 +02:00
client.c #980 memleak in json ogclient path 2021-02-23 12:35:16 +01:00
client.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
core.c #1021 remove LOG_DEBUG syslog 2021-02-04 13:36:15 +01:00
core.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
dbi.c #915 Avoid duplicate db entries in /create/image 2021-04-06 13:11:50 +02:00
dbi.h #915 Add /room/add POST method 2021-04-20 12:05:42 +02:00
json.c #941 Add og_json_parse_string_copy(...) function 2020-10-06 16:04:14 +02:00
json.h #915 Add /center/add POST method 2021-04-08 11:12:23 +02:00
list.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
main.c #1042 Update database schema automatically 2021-04-20 11:27:21 +02:00
ogAdmLib.c #971 remove unused contieneIP function in ogAdmLib 2020-10-07 11:18:37 +02:00
ogAdmLib.h #988 remove legacy configuration file 2020-10-05 14:49:17 +02:00
ogAdmServer.c #971 Remove sql bottleneck when removing software profiles 2021-04-16 13:31:45 +02:00
ogAdmServer.h #988 remove legacy configuration 2020-10-07 11:17:00 +02:00
rest.c #915 Add /room/add POST method 2021-04-20 12:05:42 +02:00
rest.h #1022 increase maximum API REST request size 2021-02-04 13:29:24 +01:00
schedule.c schedule: fix daylight saving problem with mktime() 2021-04-12 17:08:00 +02:00
schedule.h #997 Set stale check flag when processing schedule/create 2021-03-11 12:22:36 +01:00
schema.c #1042 Update database schema automatically 2021-04-20 11:27:21 +02:00
utils.c #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
utils.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
wol.c #988 remove legacy configuration 2020-10-07 11:17:00 +02:00
wol.h #990 add wol_socket_open() 2020-08-06 13:39:46 +02:00