Django REST Swagger¶
Contents:
Overview¶
Django REST Swagger is a library that generates Swagger documentation from your Django Rest Framework API code.
Supports Swagger 1.2.
Quickstart¶
- Add
rest_framework_swagger
toINSTALLED_APPS
:
INSTALLED_APPS = (
...
'rest_framework_swagger',
)
- Include the rest_framework_swagger URLs to a path of your choice
patterns = ('',
...
url(r'^docs/', include('rest_framework_swagger.urls')),
)
Further configuration can be made via SWAGGER_SETTINGS in your project’s settings.py.