From 1201f538eae8e3a9f23c40196ce9f8200d739827 Mon Sep 17 00:00:00 2001 From: allencloud Date: Thu, 8 Dec 2016 00:46:07 +0800 Subject: [PATCH] add missing status code 403 for services/create in docs Signed-off-by: allencloud Upstream-commit: 19654fd71ec5b9b075863f4623fdb80a955f5187 Component: engine --- components/engine/api/swagger.yaml | 4 ++++ components/engine/docs/api/v1.24.md | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/components/engine/api/swagger.yaml b/components/engine/api/swagger.yaml index 105f88b115..084686d51f 100644 --- a/components/engine/api/swagger.yaml +++ b/components/engine/api/swagger.yaml @@ -7135,6 +7135,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: diff --git a/components/engine/docs/api/v1.24.md b/components/engine/docs/api/v1.24.md index 81479c083e..704ba8c011 100644 --- a/components/engine/docs/api/v1.24.md +++ b/components/engine/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