diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-04-20 11:54:00 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-04-20 12:05:42 +0200 |
commit | 29e7641e910901e813f5682da677f767a2aea5cc (patch) | |
tree | 6cff56ee2a03673d66f9908d09bbf83fe09a8204 /.gitignore | |
parent | 7d74d42c79fb2747e42b4d9e2743abbc86a5354c (diff) |
#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.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions