diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-09-23 15:06:38 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-09-24 17:03:56 +0200 |
commit | 65a14e56d396a09a5fc7eca5bbdb7209269cfb40 (patch) | |
tree | 6acd1dd5918ad4a6c6ab700c4dfb53e7c65c2a4b /tests/units/test_0012_post_software.py | |
parent | bdd8519d038f3d82c65a4b327ab4a394ad3f0266 (diff) |
#942 Add POST /client/add HTTP REST method
This method adds a new client. This new client's IP cannot be duplicated
in the DB.
Request:
POST /client/add
{
"boot": "19pxeADMIN",
"center": 0,
"hardware_id": 0,
"id": 2,
"ip": "192.168.56.12",
"livedir": "ogLive",
"mac": "0800270E6512",
"maintenance": true,
"name": "pc12",
"netdriver": "generic",
"netiface": "eth1",
"netmask": "255.255.255.0",
"remote": false,
"repo_id": 1,
"room": 1,
"serial_number": ""
}
Response:
200 OK
Diffstat (limited to 'tests/units/test_0012_post_software.py')
0 files changed, 0 insertions, 0 deletions