jedcunningham commented on a change in pull request #20487:
URL: https://github.com/apache/airflow/pull/20487#discussion_r774917498



##########
File path: airflow/www/extensions/init_appbuilder.py
##########
@@ -531,12 +525,7 @@ def add_view_no_menu(self, baseview, endpoint=None, 
static_folder=None):
         return baseview
 
     def add_api(self, baseview):
-        """
-            Add a BaseApi class or child to AppBuilder
-        :param baseview: A BaseApi type class
-        :return: The instantiated base view
-        """
-        return self.add_view_no_menu(baseview)
+        raise AirflowException("Airflow doesn't support the Flask AppBuilder 
REST API")

Review comment:
       Thoughts on doing this? Should help avoid new endpoints showing up 
automatically.




-- 
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.

To unsubscribe, e-mail: [email protected]

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


Reply via email to