瀏覽代碼

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
Anusha Ragunathan 8 年之前
父節點
當前提交
0113128b2a
共有 2 個文件被更改,包括 10 次插入0 次删除
  1. 8 0
      api/swagger.yaml
  2. 2 0
      docs/api/v1.24.md

+ 8 - 0
api/swagger.yaml

@@ -6614,6 +6614,10 @@ paths:
       responses:
       responses:
         200:
         200:
           description: "no error"
           description: "no error"
+        404:
+          description: "plugin is not installed"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         500:
         500:
           description: "server error"
           description: "server error"
           schema:
           schema:
@@ -6637,6 +6641,10 @@ paths:
       responses:
       responses:
         200:
         200:
           description: "no error"
           description: "no error"
+        404:
+          description: "plugin is not installed"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         500:
         500:
           description: "server error"
           description: "server error"
           schema:
           schema:

+ 2 - 0
docs/api/v1.24.md

@@ -3800,6 +3800,7 @@ Content-Type: text/plain; charset=utf-8
 **Status codes**:
 **Status codes**:
 
 
 -   **200** - no error
 -   **200** - no error
+-   **404** - plugin not installed
 -   **500** - plugin is already enabled
 -   **500** - plugin is already enabled
 
 
 #### Disable a plugin
 #### Disable a plugin
@@ -3828,6 +3829,7 @@ Content-Type: text/plain; charset=utf-8
 **Status codes**:
 **Status codes**:
 
 
 -   **200** - no error
 -   **200** - no error
+-   **404** - plugin not installed
 -   **500** - plugin is already disabled
 -   **500** - plugin is already disabled
 
 
 #### Remove a plugin
 #### Remove a plugin