Django swagger UI is a viewer for Swagger YAML files as html. based on swagger-yaml-to-html.py.
Install the lib:
pip install django-swagger-ui
Add "swagger_ui" to your
INSTALLED_APPS
setting like this:INSTALLED_APPS = [ ... 'swagger_ui', ... ]
Include the swagger ui URLconf in your project
urls.py
like this:path('', include('swagger_ui.urls')),
Add this variable
SWAGGER_YAML_FILE
tosettings.py
pointing to your YAML fileYou will find the swagger api documentation in /api-doc/.