Fix api doc url

remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent f1dfe84738
commit 9ab8962c31
  1. 2
      api/v1/urls.py

@ -60,7 +60,7 @@ schema_view = get_schema_view(
urlpatterns = [
path('api-token-auth/', ObtainToken.as_view(), name='api-token-auth'),
path('configs/', ConfigViewSet.as_view(), name='configs'),
path('swagger(<str:format>.json|.yaml)', schema_view.without_ui(cache_timeout=None), name='schema-json'),
path('swagger(<str:format>.json|.yaml)$', schema_view.without_ui(cache_timeout=None), name='schema-json'),
path('swagger/', schema_view.with_ui('swagger', cache_timeout=None), name='schema-swagger-ui'),
path('redoc/', schema_view.with_ui('redoc', cache_timeout=None), name='schema-redoc'),
path('', include((router.urls, 'api-root')), name='api-root'),

Loading…
Cancel
Save