diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-05-31 10:56:13 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-05-31 13:01:47 +0200 |
commit | 41fad11408daf3769ff1774390357caf6dd50a25 (patch) | |
tree | d0ebfc4ede4628eee0f38be90536315994356dc6 /tests/run-tests.py | |
parent | ee2f909dbee5ed204258d013f27adb1d70bf5926 (diff) |
#942 Add POST /procedure/add method
This method adds a procedure associated with a center to the database.
Required payload parameters are center and name, description is
optional.
Note: ogServer does not allow to add more than one procedure with the
same name and center.
Request:
POST /procedure/add
{
"center": "1"
"name": "procedure1"
"description": "My procedure"
}
Response:
200 OK
This commit also adds unit tests for /procedure/add POST method.
Diffstat (limited to 'tests/run-tests.py')
0 files changed, 0 insertions, 0 deletions