瀏覽代碼

add filters for plugin list endpoint in swagger.yml

Signed-off-by: allencloud <allen.sun@daocloud.io>
allencloud 8 年之前
父節點
當前提交
26649de086
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      api/swagger.yaml

+ 9 - 0
api/swagger.yaml

@@ -6443,6 +6443,15 @@ paths:
           description: "Server error"
           schema:
             $ref: "#/definitions/ErrorResponse"
+      parameters:
+        - name: "filters"
+          in: "query"
+          type: "string"
+          description: |
+            A JSON encoded value of the filters (a `map[string][]string`) to process on the plugin list. Available filters:
+
+            - `capability=<capability name>`
+            - `enable=<true>|<false>`
       tags: ["Plugin"]
 
   /plugins/privileges: