From 951ffc056b34965ac84e353bb2ddc35dbd3354d3 Mon Sep 17 00:00:00 2001 From: Anusha Ragunathan Date: Mon, 6 Feb 2017 11:53:17 -0800 Subject: [PATCH] Merge pull request #30701 from allencloud/add-status-code-404-for-plugin-in-api-doc add status code 404 for plugin api endpoint enable and disable (cherry picked from commit 0113128b2a79a9cef9950e71e0681380b240faf4) Signed-off-by: Sebastiaan van Stijn --- 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 438cc80bf9..edc774aa5d 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -6564,6 +6564,10 @@ paths: responses: 200: description: "no error" + 404: + description: "plugin is not installed" + schema: + $ref: "#/definitions/ErrorResponse" 500: description: "server error" schema: @@ -6587,6 +6591,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 0cf4e2afab..663a39236f 100644 --- a/docs/api/v1.24.md +++ b/docs/api/v1.24.md @@ -3784,6 +3784,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 @@ -3812,6 +3813,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