summaryrefslogtreecommitdiffstats
path: root/tests/create_image.json
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2019-09-24 11:51:38 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-10-01 12:56:10 +0200
commit1a8ada191f779aec01e00ff429f437992bf8919c (patch)
tree0ad33248d8417f09d586f4a233260ecdd26419d5 /tests/create_image.json
parent7bdc8fdf756c068f070d27c644d7fc7cf9910dc4 (diff)
#915: Add POST /image/create command to REST API in ogAdmServer
This patch implements the command "image/create" that creates an image in a client. Request: POST /image/create { "clients" : [ "192.168.2.1" ], "disk" : "1", "partition" : "1", "code" : "1", "id" : "1", "name" : "test", "repository" : "192.168.2.2" } Reply: 200 OK
Diffstat (limited to 'tests/create_image.json')
-rw-r--r--tests/create_image.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/create_image.json b/tests/create_image.json
new file mode 100644
index 0000000..bd4ab21
--- /dev/null
+++ b/tests/create_image.json
@@ -0,0 +1 @@
+{ "clients" : [ "192.168.2.1" ], "disk" : "1", "partition" : "1", "code" : "1", "id" : "1", "name" : "test", "repository" : "192.168.2.4" }