make_asyncapi_asgi
faststream.asgi.make_asyncapi_asgi #
make_asyncapi_asgi(
schema: SpecificationFactory,
description: str | None = None,
tags: Sequence[Union[Tag, TagDict, dict[str, Any]]]
| None = None,
unique_id: str | None = None,
include_in_schema: bool = True,
*,
sidebar: bool = True,
info: bool = True,
servers: bool = True,
operations: bool = True,
messages: bool = True,
schemas: bool = True,
errors: bool = True,
expand_message_examples: bool = True,
asyncapi_js_url: str = ASYNCAPI_JS_DEFAULT_URL,
asyncapi_css_url: str = ASYNCAPI_CSS_DEFAULT_URL,
try_it_out_plugin_url: str = ASYNCAPI_TRY_IT_PLUGIN_URL,
try_it_out_path: str | None = "asyncapi/try",
) -> GetHandler
Create AsyncAPI documentation ASGI handler.
Source code in faststream/asgi/factories/asyncapi/docs.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | |