python - Exclude URLs from Django REST Swagger -
I have some URLs that I want to exclude from my other API documents. I'm using Django REST Swagger and only one documentation can be found () does not really tell me a lot. SWAGGER_SETTINGS has a "excluded_name location" section in Settings.py, but any real explanation or example is not.
Simply put, I want to exclude any URL from the docs which
/ api / jobs / status / / api / jobs / parameters / How can I go about doing this?
Thanks in advance for any help offered: P
to exclude Namespace for one is defined in your urls.py.
For example, in your case:
urls.py:
internal_apis = pattern ('', url (r '^ / api) / Jobs / status / ', ...), url (r' ^ / api / jobs / parameters / ', ...),) urlpatterns = urlpatterns + patterns (' ', url (r' ^ ', included ( and in your settings
SWAGGER_SETTINGS = { This is well described
Comments
Post a Comment