diff options
Diffstat (limited to 'utils/test/testapi/opnfv_testapi')
-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) |