From 31212c4d494e76f8cea812fe24efce09087efabf Mon Sep 17 00:00:00 2001 From: cb-github-robot Date: Tue, 2 Apr 2024 11:38:00 +0000 Subject: [PATCH] Update Swagger REST API doc --- src/api/rest/docs/docs.go | 14 ++++++++++++++ src/api/rest/docs/swagger.json | 14 ++++++++++++++ src/api/rest/docs/swagger.yaml | 10 ++++++++++ 3 files changed, 38 insertions(+) diff --git a/src/api/rest/docs/docs.go b/src/api/rest/docs/docs.go index 0d2e7ccc8..2af0fff4b 100644 --- a/src/api/rest/docs/docs.go +++ b/src/api/rest/docs/docs.go @@ -5581,6 +5581,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/mcir.TbImageReq" } + }, + { + "type": "boolean", + "default": false, + "description": "Force update to existing image object", + "name": "update", + "in": "query" } ], "responses": { @@ -6363,6 +6370,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/mcir.TbSpecReq" } + }, + { + "type": "boolean", + "default": false, + "description": "Force update to existing spec object", + "name": "update", + "in": "query" } ], "responses": { diff --git a/src/api/rest/docs/swagger.json b/src/api/rest/docs/swagger.json index 6eb2cd9ff..450f73b86 100644 --- a/src/api/rest/docs/swagger.json +++ b/src/api/rest/docs/swagger.json @@ -5574,6 +5574,13 @@ "schema": { "$ref": "#/definitions/mcir.TbImageReq" } + }, + { + "type": "boolean", + "default": false, + "description": "Force update to existing image object", + "name": "update", + "in": "query" } ], "responses": { @@ -6356,6 +6363,13 @@ "schema": { "$ref": "#/definitions/mcir.TbSpecReq" } + }, + { + "type": "boolean", + "default": false, + "description": "Force update to existing spec object", + "name": "update", + "in": "query" } ], "responses": { diff --git a/src/api/rest/docs/swagger.yaml b/src/api/rest/docs/swagger.yaml index 0145b3652..5995ca364 100644 --- a/src/api/rest/docs/swagger.yaml +++ b/src/api/rest/docs/swagger.yaml @@ -6587,6 +6587,11 @@ paths: name: imageId schema: $ref: '#/definitions/mcir.TbImageReq' + - default: false + description: Force update to existing image object + in: query + name: update + type: boolean produces: - application/json responses: @@ -7108,6 +7113,11 @@ paths: name: specName schema: $ref: '#/definitions/mcir.TbSpecReq' + - default: false + description: Force update to existing spec object + in: query + name: update + type: boolean produces: - application/json responses: