Re-enable the API root path and exclude it from schema introspection.

Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
Michael Price
2018-03-13 16:51:30 -04:00
committed by Roberto Rosario
parent 17acb444bd
commit ff9e291cd7
3 changed files with 6 additions and 6 deletions

View File

@@ -6,11 +6,7 @@ from .api_views import APIRoot, BrowseableObtainAuthToken
api_urls = [
# FIXME: Defining a root API path confuses Swagger which then
# groups all endpoints into a single dropdown. Disable until a
# workaround is found for Swagger.
# url(r'^$', APIRoot.as_view(), name='api_root'),
url(r'^$', APIRoot.as_view(), name='api_root'),
url(
r'^auth/token/obtain/$', BrowseableObtainAuthToken.as_view(),
name='auth_token_obtain'