Browse code

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 <github@gone.nl>

Anusha Ragunathan authored on 2017/02/07 04:53:17
Showing 2 changed files
... ...
@@ -6564,6 +6564,10 @@ paths:
6564 6564
       responses:
6565 6565
         200:
6566 6566
           description: "no error"
6567
+        404:
6568
+          description: "plugin is not installed"
6569
+          schema:
6570
+            $ref: "#/definitions/ErrorResponse"
6567 6571
         500:
6568 6572
           description: "server error"
6569 6573
           schema:
... ...
@@ -6587,6 +6591,10 @@ paths:
6587 6587
       responses:
6588 6588
         200:
6589 6589
           description: "no error"
6590
+        404:
6591
+          description: "plugin is not installed"
6592
+          schema:
6593
+            $ref: "#/definitions/ErrorResponse"
6590 6594
         500:
6591 6595
           description: "server error"
6592 6596
           schema:
... ...
@@ -3784,6 +3784,7 @@ Content-Type: text/plain; charset=utf-8
3784 3784
 **Status codes**:
3785 3785
 
3786 3786
 -   **200** - no error
3787
+-   **404** - plugin not installed
3787 3788
 -   **500** - plugin is already enabled
3788 3789
 
3789 3790
 #### Disable a plugin
... ...
@@ -3812,6 +3813,7 @@ Content-Type: text/plain; charset=utf-8
3812 3812
 **Status codes**:
3813 3813
 
3814 3814
 -   **200** - no error
3815
+-   **404** - plugin not installed
3815 3816
 -   **500** - plugin is already disabled
3816 3817
 
3817 3818
 #### Remove a plugin