From 1dde02e1ab31514e3a5c1c4335ebdbe510460518 Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Mon, 30 Sep 2019 16:16:44 +0200 Subject: #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 --- tests/restore_image.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/restore_image.json (limited to 'tests/restore_image.json') 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"} -- cgit v1.2.3-18-g5258