浏览代码

add status code 400 for update endpoints in swagger.yml

Signed-off-by: allencloud <allen.sun@daocloud.io>
allencloud 8 年之前
父节点
当前提交
c284e85f59
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      api/swagger.yaml

+ 8 - 0
api/swagger.yaml

@@ -7095,6 +7095,10 @@ paths:
       responses:
         200:
           description: "no error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
           description: "no such node"
           schema:
@@ -8201,6 +8205,10 @@ paths:
       responses:
         200:
           description: "no error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
           description: "no such secret"
           schema: