Browse Source

Add deeplinking to Swagger UI (#148)

Update the Swagger UI docs to deep link to path operations to share them more easily.
pull/155/head
William Hayes 6 years ago
committed by Sebastián Ramírez
parent
commit
500f2b2ad4
  1. 3
      fastapi/openapi/docs.py

3
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
})
</script>

Loading…
Cancel
Save