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. |
||
---|---|---|
.. | ||
test_0001_get_clients.py | ||
test_0002_post_clients.py | ||
test_0003_post_wol.py | ||
test_0004_post_shell_run.py | ||
test_0005_post_shell_output.py | ||
test_0006_post_session.py | ||
test_0007_post_poweroff.py | ||
test_0008_post_reboot.py | ||
test_0009_post_stop.py | ||
test_0010_post_refresh.py | ||
test_0011_post_hardware.py | ||
test_0012_post_software.py | ||
test_0013_nonexistent.py | ||
test_0014_big_request.py | ||
test_0015_wrong_headers.py | ||
test_0016_post_image_create.py | ||
test_0017_post_image_restore.py | ||
test_0018_post_setup.py | ||
test_0019_post_run_schedule.py | ||
test_0020_get_client_setup.py | ||
test_0021_get_client_info.py | ||
test_0022_post_client_add.py | ||
test_0023_post_client_delete.py | ||
test_0024_get_session.py | ||
test_0025_get_scopes.py | ||
test_0026_post_mode.py | ||
test_0027_get_hardware.py | ||
test_0028_get_software.py | ||
test_0029_get_images.py | ||
test_0030_get_oglive_list.py | ||
test_0031_post_room_add.py | ||
test_0032_big_response.py |