From: William Hayes Date: Fri, 12 Apr 2019 07:49:32 +0000 (-0400) Subject: :sparkles: Add deeplinking to Swagger UI (#148) X-Git-Tag: 0.14.0~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=500f2b2ad4506929c2c4a11c679f240315944b2e;p=thirdparty%2Ffastapi%2Ffastapi.git :sparkles: Add deeplinking to Swagger UI (#148) Update the Swagger UI docs to deep link to path operations to share them more easily. --- diff --git a/fastapi/openapi/docs.py b/fastapi/openapi/docs.py index 5d10aa59a6..9820525e2d 100644 --- a/fastapi/openapi/docs.py +++ b/fastapi/openapi/docs.py @@ -31,7 +31,8 @@ def get_swagger_ui_html(*, openapi_url: str, title: str) -> HTMLResponse: SwaggerUIBundle.presets.apis, SwaggerUIBundle.SwaggerUIStandalonePreset ], - layout: "BaseLayout" + layout: "BaseLayout", + deepLinking: true })