فهرست منبع

add missing status code 403 for services/create in docs

Signed-off-by: allencloud <allen.sun@daocloud.io>
(cherry picked from commit 19654fd71ec5b9b075863f4623fdb80a955f5187)
Signed-off-by: Victor Vieux <vieux@docker.com>
allencloud 8 سال پیش
والد
کامیت
4aa72cb5a9
2فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  1. 4 0
      api/swagger.yaml
  2. 6 0
      docs/api/v1.24.md

+ 4 - 0
api/swagger.yaml

@@ -7138,6 +7138,10 @@ paths:
             example:
               ID: "ak7w3gjqoa3kuz8xcpnyy0pvl"
               Warning: "unable to pin image doesnotexist:latest to digest: image library/doesnotexist:latest not found"
+        403:
+          description: "network is not eligible for services"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         409:
           description: "name conflicts with an existing service"
           schema:

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

@@ -4563,6 +4563,11 @@ image](#create-an-image) section for more details.
           ],
           "User": "33"
         },
+        "Networks": [
+            {
+              "Target": "overlay1"
+            }
+        ],
         "LogDriver": {
           "Name": "json-file",
           "Options": {
@@ -4620,6 +4625,7 @@ image](#create-an-image) section for more details.
 **Status codes**:
 
 -   **201** – no error
+-   **403** - network is not eligible for services
 -   **406** – node is not part of a swarm
 -   **409** – name conflicts with an existing object
 -   **500** - server error