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

  1. Add rest_framework_swagger to INSTALLED_APPS:
INSTALLED_APPS = (
    ...
    'rest_framework_swagger',
)
  1. 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.