Sfoglia il codice sorgente

add filters for plugin list endpoint in swagger.yml

Signed-off-by: allencloud <allen.sun@daocloud.io>
allencloud 8 anni fa
parent
commit
26649de086
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  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: