Go to file
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 #915 refresh SQL schema 2021-02-09 13:16:53 +01:00
src #915 Add /room/add POST method 2021-04-20 12:05:42 +02:00
tests #915 Add /room/add POST method 2021-04-20 12:05:42 +02:00
.gitignore #985 add .gitignore file 2020-06-17 18:20:32 +02:00
COPYING #985 add COPYING file 2020-06-18 16:48:20 +02:00
Makefile.am #1042 Update database schema automatically 2021-04-20 11:27:21 +02:00
configure.ac #986 rename to ogserver 2020-06-19 11:19:55 +02:00