kaxil commented on a change in pull request #14280:
URL: https://github.com/apache/airflow/pull/14280#discussion_r580985750



##########
File path: airflow/api_connexion/openapi/v1.yaml
##########
@@ -1380,7 +1381,96 @@ paths:
             application/json:
               schema:
                 $ref: '#/components/schemas/VersionInfo'
-
+  /plugins:
+    get:
+      summary: Get a list of loaded plugins
+      x-openapi-router-controller: 
airflow.api_connexion.endpoints.plugin_endpoint
+      operationId: get_plugins
+      tags: [Plugin]
+      responses:
+        '200':
+          description: Success
+          content:
+            application/json:
+              schema:
+                type: object
+                properties:
+                  number:
+                    type: string
+                    description: The plugin number
+                  name:
+                    type: string
+                    description: The name of the plugin
+                  hooks:
+                    type: array
+                    items:
+                      type: string
+                      nullable: true
+                    description: The plugin hooks
+                  executors:
+                    type: array
+                    items:
+                      type: string
+                      nullable: true
+                    description: The plugin executors
+                  macros:
+                    type: array
+                    items:
+                      type: string
+                      nullable: true
+                    description: The plugin macros
+                  admin_views:
+                    type: array
+                    items:
+                      type: string
+                      nullable: true
+                    description: The plugins admin views
+                  flask_blueprints:
+                    type: array
+                    items:
+                      type: string
+                      nullable: true
+                    description: The flask blueprints
+                  menu_links:
+                    type: array
+                    items:
+                      type: string
+                      nullable: true
+                    description: The menu links

Review comment:
       Should we remove `menu_links` and `admin_views` -- they are for the old 
UI
   
   
https://github.com/apache/airflow/blob/25fa3092323e0cd13b11bb8e809b88ff3c043e4e/airflow/plugins_manager.py#L316-L328




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to