From 15be050fb307d0da1521767a6f53d9b95429396b Mon Sep 17 00:00:00 2001 From: erxian Date: Fri, 2 Dec 2016 17:05:03 +0800 Subject: [PATCH] refine api swagger.yaml towards image create status code Signed-off-by: erxian --- api/swagger.yaml | 4 ++++ docs/api/v1.18.md | 1 + docs/api/v1.19.md | 1 + docs/api/v1.20.md | 1 + docs/api/v1.21.md | 1 + docs/api/v1.22.md | 1 + docs/api/v1.23.md | 1 + docs/api/v1.24.md | 1 + 8 files changed, 11 insertions(+) diff --git a/api/swagger.yaml b/api/swagger.yaml index e6365cedbc..f50e8b95ee 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -4443,6 +4443,10 @@ paths: responses: 200: description: "no error" + 404: + description: "repository does not exist or no read access" + schema: + $ref: "#/definitions/ErrorResponse" 500: description: "server error" schema: diff --git a/docs/api/v1.18.md b/docs/api/v1.18.md index df063c20bc..0f127176f4 100644 --- a/docs/api/v1.18.md +++ b/docs/api/v1.18.md @@ -1294,6 +1294,7 @@ a base64-encoded AuthConfig object. **Status codes**: - **200** – no error +- **404** - repository does not exist or no read access - **500** – server error diff --git a/docs/api/v1.19.md b/docs/api/v1.19.md index d22c158d89..326679d80f 100644 --- a/docs/api/v1.19.md +++ b/docs/api/v1.19.md @@ -1340,6 +1340,7 @@ a base64-encoded AuthConfig object. **Status codes**: - **200** – no error +- **404** - repository does not exist or no read access - **500** – server error diff --git a/docs/api/v1.20.md b/docs/api/v1.20.md index ab83b3eca1..cdd6ee634f 100644 --- a/docs/api/v1.20.md +++ b/docs/api/v1.20.md @@ -1494,6 +1494,7 @@ a base64-encoded AuthConfig object. **Status codes**: - **200** – no error +- **404** - repository does not exist or no read access - **500** – server error diff --git a/docs/api/v1.21.md b/docs/api/v1.21.md index 3ab8ac0c9e..abac14f744 100644 --- a/docs/api/v1.21.md +++ b/docs/api/v1.21.md @@ -1587,6 +1587,7 @@ a base64-encoded AuthConfig object. **Status codes**: - **200** – no error +- **404** - repository does not exist or no read access - **500** – server error diff --git a/docs/api/v1.22.md b/docs/api/v1.22.md index 943224cabd..ca7d560ba8 100644 --- a/docs/api/v1.22.md +++ b/docs/api/v1.22.md @@ -1785,6 +1785,7 @@ a base64-encoded AuthConfig object. **Status codes**: - **200** – no error +- **404** - repository does not exist or no read access - **500** – server error diff --git a/docs/api/v1.23.md b/docs/api/v1.23.md index d8c39b39e1..31ff245fdd 100644 --- a/docs/api/v1.23.md +++ b/docs/api/v1.23.md @@ -1821,6 +1821,7 @@ a base64-encoded AuthConfig object. **Status codes**: - **200** – no error +- **404** - repository does not exist or no read access - **500** – server error diff --git a/docs/api/v1.24.md b/docs/api/v1.24.md index d05ee7a2de..e99a7c25f8 100644 --- a/docs/api/v1.24.md +++ b/docs/api/v1.24.md @@ -1818,6 +1818,7 @@ a base64-encoded AuthConfig object. **Status codes**: - **200** – no error +- **404** - repository does not exist or no read access - **500** – server error