Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Settings are not picked up by swagger (0.1.14) #78

Closed
un33k opened this issue Apr 5, 2014 · 1 comment
Closed

Settings are not picked up by swagger (0.1.14) #78

un33k opened this issue Apr 5, 2014 · 1 comment

Comments

@un33k
Copy link

un33k commented Apr 5, 2014

In settings.py:

SWAGGER_SETTINGS = {
    "exclude_namespaces": [],
    "api_version": '1',
    "enabled_methods": [
        'get',
        'post',
        'put',
        'patch',
        'delete'
    ],
    "is_authenticated": False
}

However version is not picked:
{"basePath": "http://192.168.211.130:8080/swagger/api-docs", "swaggerVersion": "1.2", "apiVersion": "", "apis": [{"path": "/api/auth"}, {"path": "/api/v1"}]}

The apiVersion should be '1' and it is not.
This suggests that the SWAGGER_SETTINGS is not really being picked up by swagger.

@un33k
Copy link
Author

un33k commented Apr 6, 2014

ended up being a local setting issue.

@un33k un33k closed this as completed Apr 6, 2014
lucasnad27 pushed a commit to lucasnad27/django-rest-swagger that referenced this issue May 31, 2016
…summary

Fix issue with None in notes and summary if there is no doc for method
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant