summaryrefslogtreecommitdiffstats
path: root/src/rest.h
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-09-23 11:01:22 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-09-29 12:43:07 +0200
commit403e7c323b3069c8c70088ded30de3096a216e3f (patch)
treeaf2d46c5838054ba77cb99bcb67a928eab52ba60 /src/rest.h
parentf068a79c1a39f7f796e045628693241b0f3bc15a (diff)
#1004 Add GET /images
This commit adds GET /images to the ogServer REST API. This call returns information of all the images in ogServer. Example response: { "images": [ { "filename": "ubuntu.img", "datasize": 2150400000, "size": 613476223, "modified": "Wed Sep 23 10:37:36 2020", "permissions": "744" }, { "filename": "test.img", "datasize": 2150400000, "size": 613236475, "modified": "Tue Sep 29 08:57:47 2020", "permissions": "744" } ], "disk": { "total": 52573995008, "free": 39624544256 } }
Diffstat (limited to 'src/rest.h')
-rw-r--r--src/rest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rest.h b/src/rest.h
index 4f2347f..58d25c7 100644
--- a/src/rest.h
+++ b/src/rest.h
@@ -33,6 +33,7 @@ enum og_cmd_type {
OG_CMD_IMAGE_RESTORE,
OG_CMD_SETUP,
OG_CMD_RUN_SCHEDULE,
+ OG_CMD_IMAGES,
OG_CMD_MAX
};