From 385484eb9d0b478e83adc7a434f5d45757b811d7 Mon Sep 17 00:00:00 2001 From: Daniel Vaz Gaspar Date: Wed, 4 Dec 2019 09:50:56 +0000 Subject: [PATCH] [config] Enables swagger UI by default (#8732) * [config] Enables swagger UI by default --- UPDATING.md | 4 ++++ superset/config.py | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/UPDATING.md b/UPDATING.md index 2c8ce25a1..48628cb70 100644 --- a/UPDATING.md +++ b/UPDATING.md @@ -23,6 +23,10 @@ assists people when migrating to a new version. ## Next +* [8732](https://github.com/apache/incubator-superset/pull/8732): Swagger user interface is now enabled by default. +A new permission `show on SwaggerView` is created by `superset init` and given to the `Admin` Role. To disable the UI, +set `FAB_API_SWAGGER_UI = False` on config. + * [8721](https://github.com/apache/incubator-superset/pull/8721): When using the cache warmup Celery task you should now specify the `SUPERSET_WEBSERVER_PROTOCOL` variable in your configuration (probably either "http" or "https"). This defaults to "http". diff --git a/superset/config.py b/superset/config.py index 5b339acd2..660c933b6 100644 --- a/superset/config.py +++ b/superset/config.py @@ -104,7 +104,6 @@ SUPERSET_WEBSERVER_PORT = 8088 SUPERSET_WEBSERVER_TIMEOUT = 60 SUPERSET_DASHBOARD_POSITION_DATA_LIMIT = 65535 -EMAIL_NOTIFICATIONS = False CUSTOM_SECURITY_MANAGER = None SQLALCHEMY_TRACK_MODIFICATIONS = False # --------------------------------------------------------- @@ -164,6 +163,10 @@ APP_ICON_WIDTH = 126 # e.g. setting it to '/welcome' would take the user to '/superset/welcome' LOGO_TARGET_PATH = None +# Enables SWAGGER UI for superset openapi spec +# ex: http://localhost:8080/swaggerview/v1 +FAB_API_SWAGGER_UI = True + # Druid query timezone # tz.tzutc() : Using utc timezone # tz.tzlocal() : Using local timezone