lcr/0001-feat-Add-json-spec-for-rest-resize-api.patch
chengzrz dc4eae55c4 add HAVE_ISULAD definition and fix cpu quota out of range
Signed-off-by: chengzrz <czrzrichard@gmail.com>
2022-08-02 11:14:00 +08:00

63 lines
1.7 KiB
Diff

From 72985299db95706fd1988de4f5fa88a8cfd55367 Mon Sep 17 00:00:00 2001
From: "Neil.wrz" <wangrunze13@huawei.com>
Date: Tue, 5 Jul 2022 18:23:42 -0700
Subject: [PATCH 1/3] feat Add json spec for rest resize api
Signed-off-by: Neil.wrz <wangrunze13@huawei.com>
---
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