2022-04-18 17:16:41 +08:00
|
|
|
From 91c988d01b96ba31ac495228a17644aa4aab47c9 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: haozi007 <liuhao27@huawei.com>
|
|
|
|
|
Date: Tue, 22 Mar 2022 07:24:11 +0000
|
2022-06-16 08:15:10 +01:00
|
|
|
Subject: [PATCH 2/4] add rename json schema for rename subcommand in restful
|
2022-04-18 17:16:41 +08:00
|
|
|
mode
|
|
|
|
|
|
|
|
|
|
Signed-off-by: haozi007 <liuhao27@huawei.com>
|
|
|
|
|
---
|
|
|
|
|
src/json/schema/container/rename-request.json | 12 ++++++++++++
|
|
|
|
|
src/json/schema/container/rename-response.json | 15 +++++++++++++++
|
|
|
|
|
2 files changed, 27 insertions(+)
|
|
|
|
|
create mode 100644 src/json/schema/container/rename-request.json
|
|
|
|
|
create mode 100644 src/json/schema/container/rename-response.json
|
|
|
|
|
|
|
|
|
|
diff --git a/src/json/schema/container/rename-request.json b/src/json/schema/container/rename-request.json
|
|
|
|
|
new file mode 100644
|
|
|
|
|
index 0000000..35a6bd3
|
|
|
|
|
--- /dev/null
|
|
|
|
|
+++ b/src/json/schema/container/rename-request.json
|
|
|
|
|
@@ -0,0 +1,12 @@
|
|
|
|
|
+{
|
|
|
|
|
+ "$schema": "http://json-schema.org/draft-04/schema#",
|
|
|
|
|
+ "type": "object",
|
|
|
|
|
+ "properties": {
|
|
|
|
|
+ "old-name": {
|
|
|
|
|
+ "type": "string"
|
|
|
|
|
+ },
|
|
|
|
|
+ "new-name": {
|
|
|
|
|
+ "type": "string"
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
diff --git a/src/json/schema/container/rename-response.json b/src/json/schema/container/rename-response.json
|
|
|
|
|
new file mode 100644
|
|
|
|
|
index 0000000..048f43d
|
|
|
|
|
--- /dev/null
|
|
|
|
|
+++ b/src/json/schema/container/rename-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"
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
--
|
2022-06-16 08:15:10 +01:00
|
|
|
2.20.1
|
2022-04-18 17:16:41 +08:00
|
|
|
|