ogserver/src
Javier Sánchez Parra 41fad11408 #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.
2021-05-31 13:01:47 +02:00
..
cfg.c ogServer is AGPLv3+ 2021-05-04 17:59:11 +02:00
cfg.h #988 remove legacy configuration 2020-10-07 11:17:00 +02:00
client.c #1037 Add disk type 2021-05-26 17:19:30 +02:00
client.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
core.c ogServer is AGPLv3+ 2021-05-04 17:59:11 +02:00
core.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
dbi.c ogServer is AGPLv3+ 2021-05-04 17:59:11 +02:00
dbi.h #915 Add /room/add POST method 2021-04-20 12:05:42 +02:00
json.c #1037 Add disk type 2021-05-26 17:19:30 +02:00
json.h #1037 Add disk type 2021-05-26 17:19:30 +02:00
list.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
main.c ogServer is AGPLv3+ 2021-05-04 17:59:11 +02:00
ogAdmLib.c #971 remove unused contieneIP function in ogAdmLib 2020-10-07 11:18:37 +02:00
ogAdmLib.h #988 remove legacy configuration file 2020-10-05 14:49:17 +02:00
ogAdmServer.c #1037 Add disk type 2021-05-26 17:19:30 +02:00
ogAdmServer.h #988 remove legacy configuration 2020-10-07 11:17:00 +02:00
rest.c #942 Add POST /procedure/add method 2021-05-31 13:01:47 +02:00
rest.h #995 Add link speed parsing to client probe response 2021-05-04 18:13:35 +02:00
schedule.c ogServer is AGPLv3+ 2021-05-04 17:59:11 +02:00
schedule.h #997 Set stale check flag when processing schedule/create 2021-03-11 12:22:36 +01:00
schema.c #1042 fix multiple definition of ogconfig 2021-05-27 12:22:49 +02:00
utils.c ogServer is AGPLv3+ 2021-05-04 17:59:11 +02:00
utils.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
wol.c ogServer is AGPLv3+ 2021-05-04 17:59:11 +02:00
wol.h #1043 add WOL_SENT state 2021-04-29 11:52:32 +02:00