diff options
author | 2017-05-10 10:59:40 +0800 | |
---|---|---|
committer | 2017-05-11 18:31:12 +0800 | |
commit | a16b903c9765049bd28102c812b8307090a97e16 (patch) | |
tree | fdaa1c16342ba9de724dc5cab466760689bd5542 /utils/test/testapi/opnfv_testapi/tornado_swagger | |
parent | a1655f1109920f83d12333ba8e0f6c8f6609535d (diff) |
clarify schema base on swagger1.2 specification
Change-Id: I98e165ae943b54d6a38783f2a3822d381c247ee4
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/testapi/opnfv_testapi/tornado_swagger')
-rw-r--r-- | utils/test/testapi/opnfv_testapi/tornado_swagger/views.py | 6 |
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) |