Add deeplinking to Swagger UI (#148)

Update the Swagger UI docs to deep link to path operations to share them more easily.
This commit is contained in:
William Hayes
2019-04-12 03:49:32 -04:00
committed by Sebastián Ramírez
parent 5cf7718657
commit 500f2b2ad4

View 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>