☰
Debian Codegraph
@
2.24.0-1
/
/
docs
/
examples
/
openapi
/
plugins
/
scalar_customized.py
☽
☼
docs/examples/openapi/plugins/scalar_customized.py
code
plain
raw
Expat
Alc <
[email protected]
>,; Cody Fincher <
[email protected]
>,; Jacob Coffee <
[email protected]
>,; Janek Nouvertné <
[email protected]
>,; Litestar Developers <
[email protected]
>,; Peter Schutt <
[email protected]
>,; Visakh Unnikrishnan <
[email protected]
>,
debian/copyright
1
from litestar.openapi.plugins import ScalarRenderPlugin
2
3
scalar_plugin = ScalarRenderPlugin(
4
js_url="https://example.com/my-custom-scalar.js",
5
css_url="https://example.com/my-custom-scalar.css",
6
path="/scalar",
7
)