summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-02-01 10:00:35 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-02-01 10:00:35 +0800
commit28ac890799faca8dc3cf94a4dda0f29b7f52b8d9 (patch)
treed7222d7b2e63d4c5eeb8a2cb728816afcfb04329 /res
parent68c5c0abf623f0f6ad5d3f5f5628997ebee49bc9 (diff)
Remove vfc-vnfres redundant interfaces
Change-Id: If8616ddf42ecd1ccc9c6272099f9e7f7d166ef43 Issue-ID: VFC-679 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'res')
-rw-r--r--res/res/swagger/urls.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/res/res/swagger/urls.py b/res/res/swagger/urls.py
index 80bc376..824b515 100644
--- a/res/res/swagger/urls.py
+++ b/res/res/swagger/urls.py
@@ -21,10 +21,10 @@ swagger_info = openapi.Info(
default_version='v1',
description="""
-The `swagger-ui` view can be found [here](/api/vnfres/v1/cached/swagger).
-The `ReDoc` view can be found [here](/api/vnfres/v1/cached/redoc).
-The swagger YAML document can be found [here](/api/vnfres/v1/cached/swagger.yaml).
-The swagger JSON document can be found [here](/api/vnfres/v1/cached/swagger.json)."""
+The `swagger-ui` view can be found [here](/api/vnfres/v1/swagger).
+The `ReDoc` view can be found [here](/api/vnfres/v1/redoc).
+The swagger YAML document can be found [here](/api/vnfres/v1/swagger.yaml).
+The swagger JSON document can be found [here](/api/vnfres/v1/swagger.json)."""
)
SchemaView = get_schema_view(
@@ -36,9 +36,6 @@ SchemaView = get_schema_view(
urlpatterns = [
# url(r'^api/vnfres/v1/swagger.json$', SwaggerJsonView.as_view()),
url(r'^api/vnfres/v1/swagger(?P<format>.json|.yaml)$', SchemaView.without_ui(cache_timeout=0), name='schema-json'),
- url(r'^api/vnfres/v1/swagger/$', SchemaView.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
- url(r'^api/vnfres/v1/redoc/$', SchemaView.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
- url(r'^api/vnfres/v1/cached/swagger(?P<format>.json|.yaml)$', SchemaView.without_ui(cache_timeout=None), name='cschema-json'),
- url(r'^api/vnfres/v1/cached/swagger/$', SchemaView.with_ui('swagger', cache_timeout=None), name='cschema-swagger-ui'),
- url(r'^api/vnfres/v1/cached/redoc/$', SchemaView.with_ui('redoc', cache_timeout=None), name='cschema-redoc'),
+ url(r'^api/vnfres/v1/swagger$', SchemaView.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
+ url(r'^api/vnfres/v1/redoc$', SchemaView.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
]