summaryrefslogtreecommitdiffstats
path: root/tests/config/ogserver.cfg
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-10-13 14:46:28 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-10-14 12:05:25 +0200
commitd2f20d0be06617f421eecca111449d94672695eb (patch)
tree6547ad52f265f89158553d26bc9e7eac9ed72518 /tests/config/ogserver.cfg
parent24c8b940e614fa795b679628be2e6c0d68bd41e5 (diff)
#942 Create DB image when calling POST /image/create
In case the DB entry for an image does not exist when POST /image/create is called, this patch takes care of calling it. This adds few optional json parameters to the POST /image/create API. If optional parameters are included then this patch creates the DB entry, otherwise it just creates the actual image and updates the existing entry. Request: POST /image/create { "clients":["192.168.56.11"], "disk":"1", "partition":"1", "name":"archlinux", "repository":"192.168.56.10", "id":"24", "code":"131", "description":"This is a test", "group_id":0, "center_id":1 } Response: 200 OK
Diffstat (limited to 'tests/config/ogserver.cfg')
0 files changed, 0 insertions, 0 deletions