drf-yasg · PyPI
https://pypi.org/project/drf-yasg25.10.2020 · OpenAPI 3.0 note. If you are looking to add Swagger/OpenAPI support to a new project you might want to take a look at drf-spectacular, which is an actively maintained new library that shares most of the goals of this project, while working with OpenAPI 3.0 schemas. OpenAPI 3.0 provides a lot more flexibility than 2.0 in the types of API that can be described.
Django REST Swagger
django-rest-swagger.readthedocs.io › en › latestfrom django.conf.urls import url from rest_framework_swagger.views import get_swagger_view schema_view = get_swagger_view(title='Pastebin API') urlpatterns = [ url(r'^$', schema_view) ] View in the browser. Example app. An example based on the Django REST Tutorial ships with the project. It and can be optionally locally using Docker, or ...