]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:sparkles: Add deeplinking to Swagger UI (#148)
authorWilliam Hayes <william.s.hayes@gmail.com>
Fri, 12 Apr 2019 07:49:32 +0000 (03:49 -0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Fri, 12 Apr 2019 07:49:32 +0000 (11:49 +0400)
Update the Swagger UI docs to deep link to path operations to share them more easily.

fastapi/openapi/docs.py

index 5d10aa59a68fd5f1f8fa5b1987008fbed8c0876f..9820525e2d79e24c296263a5e25e3f8afdb3bb53 100644 (file)
@@ -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
  
     })
     </script>