summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/opnfv_testapi
diff options
context:
space:
mode:
authorSerena Feng <feng.xiaowei@zte.com.cn>2017-05-12 02:12:33 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-12 02:12:33 +0000
commitf6554da7e6a13f6183f9b58901765f979381820b (patch)
tree489097bf2567a15b73f702b0df662316aeeafe1b /utils/test/testapi/opnfv_testapi
parentd094ccc52e37fd57940fcee41cb038e3d4a51fc9 (diff)
parenta16b903c9765049bd28102c812b8307090a97e16 (diff)
Merge "clarify schema base on swagger1.2 specification"
Diffstat (limited to 'utils/test/testapi/opnfv_testapi')
-rw-r--r--utils/test/testapi/opnfv_testapi/tornado_swagger/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/test/testapi/opnfv_testapi/tornado_swagger/views.py b/utils/test/testapi/opnfv_testapi/tornado_swagger/views.py
index ee9cf0487..ca4f01cfc 100644
--- a/utils/test/testapi/opnfv_testapi/tornado_swagger/views.py
+++ b/utils/test/testapi/opnfv_testapi/tornado_swagger/views.py
@@ -51,11 +51,9 @@ class SwaggerResourcesHandler(tornado.web.RequestHandler):
'apiVersion': self.api_version,
'swaggerVersion': self.swagger_version,
'basePath': self.base_url,
- 'produces': ["application/json"],
- 'description': 'Test Api Spec',
'apis': [{
'path': self.reverse_url(settings.API_DECLARATION_NAME),
- 'description': 'Test Api Spec'
+ 'description': 'Restful APIs Specification'
}]
}
@@ -78,6 +76,8 @@ class SwaggerApiHandler(tornado.web.RequestHandler):
'apiVersion': self.api_version,
'swaggerVersion': self.swagger_version,
'basePath': self.base_url,
+ 'resourcePath': '/',
+ 'produces': ["application/json"],
'apis': [self.__get_api_spec__(path, spec, operations)
for path, spec, operations in apis],
'models': self.__get_models_spec(settings.models)