This is a django api for connexion lib.
With poetry:
poetry add django-connexion
With pip:
pip install django-connexion
from django_connexion import DjangoApi
doc_api = DjangoApi("openapi.json") # path to openapi file (json or yaml).
# ... any code
urlpatterns = [
path("", doc_api.urls),
# ... rest of urls
path('admin/', admin.site.urls),
]