浏览代码

Merge pull request #30832 from allencloud/update-swaggeryml-on-cluster-status-code

remove 400 and 404 for get nodes endpoint and add 503 for secret update
Vincent Demeester 8 年之前
父节点
当前提交
e8b92f154d
共有 1 个文件被更改,包括 4 次插入8 次删除
  1. 4 8
      api/swagger.yaml

+ 4 - 8
api/swagger.yaml

@@ -6836,14 +6836,6 @@ paths:
             type: "array"
             items:
               $ref: "#/definitions/Node"
-        400:
-          description: "bad parameter"
-          schema:
-            $ref: "#/definitions/ErrorResponse"
-        404:
-          description: "no such node"
-          schema:
-            $ref: "#/definitions/ErrorResponse"
         500:
           description: "server error"
           schema:
@@ -7938,6 +7930,10 @@ paths:
           description: "server error"
           schema:
             $ref: "#/definitions/ErrorResponse"
+        503:
+          description: "node is not part of a swarm"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
         - name: "id"
           in: "path"