dpgaspar commented on code in PR #22931:
URL: https://github.com/apache/superset/pull/22931#discussion_r1093004151
##########
superset/datasource/api.py:
##########
@@ -35,6 +42,77 @@ class DatasourceRestApi(BaseSupersetApi):
resource_name = "datasource"
openapi_spec_tag = "Datasources"
+ openapi_spec_component_schemas = (GetOrCreateTableSchema,)
+
+ @expose("/table/get_or_create/", methods=["POST"])
Review Comment:
a table here is a dataset, I think this should live on `/api/v1/dataset`,
take a look at:
https://github.com/apache/superset/blob/master/superset/datasets/commands/create.py#L57
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]