robdiciuccio commented on a change in pull request #12050:
URL:
https://github.com/apache/incubator-superset/pull/12050#discussion_r545998614
##########
File path: superset/cli.py
##########
@@ -625,3 +626,39 @@ def alert() -> None:
resolution=6000,
session=session,
)
+
+
[email protected]()
+@with_appcontext
+def update_api_docs() -> None:
+ """Regenerate the openapi.json file in docs"""
+ from apispec import APISpec
+ from apispec.ext.marshmallow import MarshmallowPlugin
+ from flask_appbuilder.api import BaseApi
+ from os import path
+
+ superset_dir = path.abspath(path.dirname(__file__))
+ openapi_json = path.join(
+ superset_dir, "..", "docs", "src", "resources", "openapi.json"
+ )
+ api_version = "v1"
Review comment:
Makes sense when we have more than one version ;) Trying to keep it as
simple as possible in the meantime.
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]