summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0031_post_room_add.py
Commit message (Collapse)AuthorAgeFilesLines
* #915 Add /room/add POST methodJavier Sánchez Parra2021-04-201-0/+47
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.