From 72985299db95706fd1988de4f5fa88a8cfd55367 Mon Sep 17 00:00:00 2001 From: "Neil.wrz" Date: Tue, 5 Jul 2022 18:23:42 -0700 Subject: [PATCH 1/5] feat Add json spec for rest resize api Signed-off-by: Neil.wrz --- src/json/schema/container/resize-request.json | 18 ++++++++++++++++++ src/json/schema/container/resize-response.json | 15 +++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 src/json/schema/container/resize-request.json create mode 100644 src/json/schema/container/resize-response.json diff --git a/src/json/schema/container/resize-request.json b/src/json/schema/container/resize-request.json new file mode 100644 index 0000000..8a8455f --- /dev/null +++ b/src/json/schema/container/resize-request.json @@ -0,0 +1,18 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "suffix": { + "type": "string" + }, + "height": { + "type": "uint32" + }, + "width": { + "type": "uint32" + } + } +} diff --git a/src/json/schema/container/resize-response.json b/src/json/schema/container/resize-response.json new file mode 100644 index 0000000..4bfafd6 --- /dev/null +++ b/src/json/schema/container/resize-response.json @@ -0,0 +1,15 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "id":{ + "type":"string" + }, + "cc": { + "type": "uint32" + }, + "errmsg": { + "type": "string" + } + } +} \ No newline at end of file -- 2.25.1