Skip to content

Instantly share code, notes, and snippets.

View oden3000's full-sized avatar

Jarrod oden3000

View GitHub Profile
@oden3000
oden3000 / 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 = {