File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
{{cookiecutter.git_repo_name}}/{{cookiecutter.__app_name}} Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1414static_path = os .path .join (os .path .abspath (os .path .dirname (__file__ )), 'static' )
1515{% endif % }
1616
17+ # Used to config swagger UI
18+ # Reference : https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/
19+ swagger_ui_parameters = {
20+ 'docExpansion' : 'none' ,
21+ 'filter' : 'true'
22+ }
23+
1724web_app = FastAPI (title = '{{ cookiecutter.git_repo_name }}' , version = __version__ ,
18- description = '{{ cookiecutter.app_description }}' )
25+ description = '{{ cookiecutter.app_description }}' , swagger_ui_parameters = swagger_ui_parameters )
1926web_app .include_router (example .router )
2027{% if cookiecutter .include_webpages == "y" % }
2128web_app .include_router (hello_world .router )
You can’t perform that action at this time.
0 commit comments