From 75f73058888347261edc4668c9d65f9ca161338d Mon Sep 17 00:00:00 2001 From: allencloud Date: Fri, 3 Feb 2017 15:13:10 +0800 Subject: [PATCH] add status code 404 for plugin api endpoint enable and disable Signed-off-by: allencloud --- api/swagger.yaml | 8 ++++++++ docs/api/v1.24.md | 2 ++ 2 files changed, 10 insertions(+) diff --git a/api/swagger.yaml b/api/swagger.yaml index 25f4d96da0..7f8f5b648c 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -6610,6 +6610,10 @@ paths: responses: 200: description: "no error" + 404: + description: "plugin is not installed" + schema: + $ref: "#/definitions/ErrorResponse" 500: description: "server error" schema: @@ -6633,6 +6637,10 @@ paths: responses: 200: description: "no error" + 404: + description: "plugin is not installed" + schema: + $ref: "#/definitions/ErrorResponse" 500: description: "server error" schema: diff --git a/docs/api/v1.24.md b/docs/api/v1.24.md index 7514d05564..60f3260d28 100644 --- a/docs/api/v1.24.md +++ b/docs/api/v1.24.md @@ -3800,6 +3800,7 @@ Content-Type: text/plain; charset=utf-8 **Status codes**: - **200** - no error +- **404** - plugin not installed - **500** - plugin is already enabled #### Disable a plugin @@ -3828,6 +3829,7 @@ Content-Type: text/plain; charset=utf-8 **Status codes**: - **200** - no error +- **404** - plugin not installed - **500** - plugin is already disabled #### Remove a plugin