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 0113128b2a)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Anusha Ragunathan 2017-02-06 11:53:17 -08:00 committed by Sebastiaan van Stijn
parent ed6e849a1c
commit 951ffc056b
2 changed files with 10 additions and 0 deletions

View file

@ -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:

View file

@ -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