"""Redoc Open API documentation."""
    default_view = "redoc"
    @expose("/redoc")
    def redoc(self):
        """Redoc API documentation."""
        openapi_spec_url = url_for("/api/v1./api/v1_openapi_yaml")
        return self.render_template("airflow/redoc.html", openapi_spec_url=openapi_spec_url)
class DagFilter(BaseFilter):
    """Filter using DagIDs."""
    def apply(self, query, func):
        if get_airflow_app().appbuilder.sm.has_all_dags_access(g.user):
            return query
        filter_dag_ids = get_airflow_app().appbuilder.sm.get_accessible_dag_ids(g.user)
        return query.where(self.model.dag_id.in_(filter_dag_ids))
class AirflowModelView(ModelView):