mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +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:
@@ -167,6 +167,7 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
|
||||
|
||||
apispec_parameter_schemas = {
|
||||
"database_schemas_query_schema": database_schemas_query_schema,
|
||||
"get_export_ids_schema": get_export_ids_schema,
|
||||
}
|
||||
openapi_spec_tag = "Database"
|
||||
openapi_spec_component_schemas = (
|
||||
@@ -682,9 +683,7 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: integer
|
||||
$ref: '#/components/schemas/get_export_ids_schema'
|
||||
responses:
|
||||
200:
|
||||
description: A zip file with database(s) and dataset(s) as YAML
|
||||
|
||||
Reference in New Issue
Block a user