1717from .formats import get_formats
1818from .routes import Router
1919from .staticfiles import StaticFiles
20- from .statics import DEFAULT_API_THEME , DEFAULT_CORS_PARAMS , DEFAULT_SECRET_KEY
20+ from .statics import DEFAULT_CORS_PARAMS , DEFAULT_OPENAPI_THEME , DEFAULT_SECRET_KEY
2121from .templates import Templates
2222
2323
@@ -28,7 +28,7 @@ class API:
2828 :param templates_dir: The directory to use for templates. Will be created for you if it doesn't already exist.
2929 :param auto_escape: If ``True``, HTML and XML templates will automatically be escaped.
3030 :param enable_hsts: If ``True``, send all responses to HTTPS URLs.
31- :param api_theme : OpenAPI documentation theme, must be one of ``elements``, ``rapidoc``, ``redoc``, ``swagger_ui``
31+ :param openapi_theme : OpenAPI documentation theme, must be one of ``elements``, ``rapidoc``, ``redoc``, ``swagger_ui``
3232 """ # noqa: E501
3333
3434 status_codes = status_codes
@@ -55,7 +55,7 @@ def __init__(
5555 cors = False ,
5656 cors_params = DEFAULT_CORS_PARAMS ,
5757 allowed_hosts = None ,
58- api_theme = DEFAULT_API_THEME ,
58+ openapi_theme = DEFAULT_OPENAPI_THEME ,
5959 ):
6060 self .background = BackgroundQueue ()
6161
@@ -122,7 +122,7 @@ def __init__(
122122 license = license ,
123123 openapi_route = openapi_route ,
124124 static_route = static_route ,
125- api_theme = api_theme ,
125+ openapi_theme = openapi_theme ,
126126 )
127127
128128 # TODO: Update docs for templates
0 commit comments