diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2023-08-22 13:47:56 +0200 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2023-08-23 11:39:19 +0200 |
commit | a67c1088efac08840458c6b66660e06e5119f0cc (patch) | |
tree | 161200717b5fc538c5b25c58112921120f671dc4 /tests/run-tests.sh | |
parent | b2c8c9d9ab1cfaaf833f7e6ad318505df9a9ec36 (diff) |
rest: add DELETE operation to /server endpoint
Expose deletion of rows from "entornos" table via the /server
endpoint using the DELETE http request method.
The expected payload is the server id as a string. For example:
>>>
DELETE /server
{ "id": "4" }
<<<
200 OK
If the specified server is currently associated with any computer
("ordenadores" table) the foreign key contraint (ON DELETE RESTRICT)
will avoid the deletion and the server responds with
400 Bad Request.
>>>
DELETE /server
{ "id": "1" }
<<<
400 Bad Request
Diffstat (limited to 'tests/run-tests.sh')
0 files changed, 0 insertions, 0 deletions