mirror of
https://github.com/apache/superset.git
synced 2026-04-24 02:25:13 +00:00
feat: add endpoint to export saved queries using new format (#11447)
* Add UUID to saved_query * Reuse function from previous migration * Point to new head * feat: add backend to export saved queries using new format
This commit is contained in:
@@ -166,6 +166,9 @@ class DatasetRestApi(BaseSupersetModelRestApi):
|
||||
allowed_rel_fields = {"database", "owners"}
|
||||
allowed_distinct_fields = {"schema"}
|
||||
|
||||
apispec_parameter_schemas = {
|
||||
"get_export_ids_schema": get_export_ids_schema,
|
||||
}
|
||||
openapi_spec_component_schemas = (DatasetRelatedObjectsResponse,)
|
||||
|
||||
@expose("/", methods=["POST"])
|
||||
@@ -360,9 +363,7 @@ class DatasetRestApi(BaseSupersetModelRestApi):
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: integer
|
||||
$ref: '#/components/schemas/get_export_ids_schema'
|
||||
responses:
|
||||
200:
|
||||
description: Dataset export
|
||||
|
||||
Reference in New Issue
Block a user