You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/03/31 18:50:53 UTC
[GitHub] [superset] betodealmeida commented on a change in pull request #13893: feature: create backend routes and API for importing saved queries
betodealmeida commented on a change in pull request #13893:
URL: https://github.com/apache/superset/pull/13893#discussion_r605141194
##########
File path: superset/queries/saved_queries/api.py
##########
@@ -252,3 +265,135 @@ def export(self, **kwargs: Any) -> Response:
as_attachment=True,
attachment_filename=filename,
)
+ @expose("/import/", methods=["POST"])
Review comment:
You also need to add `RouteMethod.IMPORT` to `include_route_methods` in this file, otherwise the endpoint will not be exposed.
--
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org