浏览代码

Merge pull request #30734 from allencloud/add-400-status-code-for-events-endpoint

add status code 400 for api endpoint /events
Vincent Demeester 8 年之前
父节点
当前提交
f3da980a45
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 4 0
      api/swagger.yaml
  2. 1 0
      docs/api/v1.24.md

+ 4 - 0
api/swagger.yaml

@@ -5387,6 +5387,10 @@ paths:
                   image: "alpine"
                   name: "my-container"
               time: 1461943101
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         500:
           description: "server error"
           schema:

+ 1 - 0
docs/api/v1.24.md

@@ -2648,6 +2648,7 @@ Docker daemon report the following event:
 **Status codes**:
 
 -   **200** – no error
+-   **400** - bad parameter
 -   **500** – server error
 
 #### Get a tarball containing all images in a repository