Browse code

add status code 400 for api endpoint /events

Signed-off-by: allencloud <allen.sun@daocloud.io>

allencloud authored on 2017/02/04 14:40:24
Showing 2 changed files
... ...
@@ -5383,6 +5383,10 @@ paths:
5383 5383
                   image: "alpine"
5384 5384
                   name: "my-container"
5385 5385
               time: 1461943101
5386
+        400:
5387
+          description: "bad parameter"
5388
+          schema:
5389
+            $ref: "#/definitions/ErrorResponse"
5386 5390
         500:
5387 5391
           description: "server error"
5388 5392
           schema:
... ...
@@ -2648,6 +2648,7 @@ Docker daemon report the following event:
2648 2648
 **Status codes**:
2649 2649
 
2650 2650
 -   **200** – no error
2651
+-   **400** - bad parameter
2651 2652
 -   **500** – server error
2652 2653
 
2653 2654
 #### Get a tarball containing all images in a repository