Settings¶
Add
djanog-asyncapi
toINSTALLED_APPS
INSTALLED_APPS = [
...,
"django_asyncapi",
]
Setup configuration inside
settings.py
DJANGO_ASYNCAPI = {
"ASYNCAPI_SPEC_CLASS": "bus.routing.MySpecialServiceAsyncAPISpecV3",
}
Add
django-asyncapi
urls
from django.urls import path, include
urlpatterns = [
path('docs/', include('django_asyncapi.urls')),
]