Skip to content

Instantly share code, notes, and snippets.

@nevros
nevros / inspector.py
Created April 26, 2019 00:21
drf-yasg JSON API support for swagger
"""
This has been created to answer the following question on stackoverflow
https://stackoverflow.com/questions/46157710/django-swagger-and-json-api-render-issues
This file lives in the folder 'jsonapi'. The following is code is added into the settings.py to enable the
code contained within this file.
# DRF-yasg settings
SWAGGER_SETTINGS = {