mirror of https://git.48k.eu/ogserver
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.
|
||
|---|---|---|
| .. | ||
| config | ||
| units | ||
| clients.json | ||
| create_basic_image.json | ||
| create_image.json | ||
| create_schedule.json | ||
| post_clients.json | ||
| post_shell_output.json | ||
| post_shell_run.json | ||
| poweroff.json | ||
| reboot.json | ||
| restore_image.json | ||
| run-tests.py | ||
| run-tests.sh | ||
| run_schedule.json | ||
| session.json | ||
| setup_image.json | ||
| stop.json | ||
| task.json | ||
| wol.json | ||