summaryrefslogtreecommitdiffstats
path: root/tests/restore_image.json
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2019-09-30 16:16:44 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-10-01 12:56:10 +0200
commit1dde02e1ab31514e3a5c1c4335ebdbe510460518 (patch)
treeb658658a9080866af0847d90b1c5fb76e5e2d505 /tests/restore_image.json
parentc87a1dbdfb3fd0a91acccd418951f879e9c33d13 (diff)
#915: Add POST /image/restore command to REST API in ogAdmServer
This patch implements the command "image/create" that creates an image in a client. Request: POST /image/restore { "clients" : [ "192.168.56.11" ], "disk" : "1", "partition" : "1", "name" : "test", "repository" : "192.168.56.10", "type" : "UNICAST", "filesystem": "1", "image_id": "1"} Reply: 200 OK
Diffstat (limited to 'tests/restore_image.json')
-rw-r--r--tests/restore_image.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/restore_image.json b/tests/restore_image.json
new file mode 100644
index 0000000..76992ca
--- /dev/null
+++ b/tests/restore_image.json
@@ -0,0 +1 @@
+{ "clients" : [ "192.168.56.11" ], "disk" : "1", "partition" : "1", "name" : "test", "repository" : "192.168.56.10", "type" : "UNICAST", "filesystem": "1", "image_id": "1"}