Explorar o código

remove 400 and 404 for get nodes endpoint and add 503 for secret update

Signed-off-by: allencloud <allen.sun@daocloud.io>
allencloud %!s(int64=8) %!d(string=hai) anos
pai
achega
5692a7ba3d
Modificáronse 1 ficheiros con 4 adicións e 8 borrados
  1. 4 8
      api/swagger.yaml

+ 4 - 8
api/swagger.yaml

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