summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-01-23 18:09:35 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-01-23 18:09:35 +0800
commit08e63800efe9b6c1ca3dbe159196efc1396804dd (patch)
treece4eb46cec9081f64a58049e51e10e3c1c6b0f88
parent74b380a68330962c078eb3c5fecfd5e4430ca556 (diff)
Fix vfc-vnfmgr swagger baseurl
Change-Id: I0de6900979dcaa8998fb03a337cc03cdd1bb5dd2 Issue-ID: VFC-670 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rw-r--r--mgr/mgr/swagger/urls.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/mgr/mgr/swagger/urls.py b/mgr/mgr/swagger/urls.py
index 6bd93f3..97ccea6 100644
--- a/mgr/mgr/swagger/urls.py
+++ b/mgr/mgr/swagger/urls.py
@@ -17,8 +17,6 @@ from drf_yasg import openapi
from drf_yasg.views import get_schema_view
from rest_framework import permissions
-from mgr.swagger import views
-
swagger_info = openapi.Info(
title="vnfmgr API",
default_version='v1',
@@ -36,11 +34,11 @@ SchemaView = get_schema_view(
)
urlpatterns = [
- url(r'^api/vnfmgr/v1/swagger.json$', views.SwaggerView.as_view()),
- url(r'^swagger(?P<format>.json|.yaml)$', SchemaView.without_ui(cache_timeout=0), name='schema-json'),
- url(r'^swagger/$', SchemaView.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
- url(r'^redoc/$', SchemaView.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
- url(r'^cached/swagger(?P<format>.json|.yaml)$', SchemaView.without_ui(cache_timeout=None), name='cschema-json'),
- url(r'^cached/swagger/$', SchemaView.with_ui('swagger', cache_timeout=None), name='cschema-swagger-ui'),
- url(r'^cached/redoc/$', SchemaView.with_ui('redoc', cache_timeout=None), name='cschema-redoc'),
+ # url(r'^api/vnfmgr/v1/swagger.json$', views.SwaggerView.as_view()),
+ url(r'^api/vnfmgr/v1/swagger(?P<format>.json|.yaml)$', SchemaView.without_ui(cache_timeout=0), name='schema-json'),
+ url(r'^api/vnfmgr/v1/swagger/$', SchemaView.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
+ url(r'^api/vnfmgr/v1/redoc/$', SchemaView.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
+ url(r'^api/vnfmgr/v1/cached/swagger(?P<format>.json|.yaml)$', SchemaView.without_ui(cache_timeout=None), name='cschema-json'),
+ url(r'^api/vnfmgr/v1/cached/swagger/$', SchemaView.with_ui('swagger', cache_timeout=None), name='cschema-swagger-ui'),
+ url(r'^api/vnfmgr/v1/cached/redoc/$', SchemaView.with_ui('redoc', cache_timeout=None), name='cschema-redoc'),
]