|
|
|
|
@ -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'), |
|
|
|
|
|