summaryrefslogtreecommitdiffstats
path: root/result_collection_api/opnfv_testapi/tornado_swagger/settings.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-06-01 17:36:45 +0800
committerSerena Feng <feng.xiaowei@zte.com.cn>2016-06-01 13:42:01 +0000
commit5a70780d9bb105f8aef312d67cf1ec2e3751f0c3 (patch)
treeda9c1863330375074509c2a61223fdb5de917534 /result_collection_api/opnfv_testapi/tornado_swagger/settings.py
parent2d2a12935a39aa8fc7dc615da9058085a1661876 (diff)
change the usage of tornado_swagger package
changes: move tornado_swagger package out of tornado_swagger_ui remove tornado_swagger_ui modify files that import tornado_swagger originally: opnfv_testapi.tornado_swagger_ui.tornado_swagger to: opnfv_testapi.tornado_swagger modify setup.cfg to delete tornado_swagger_ui prefix JIRA: FUNCTEST-286 Change-Id: I1e8972e4fbe26ad3a5d945f3aed6783d0b666a5f Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'result_collection_api/opnfv_testapi/tornado_swagger/settings.py')
-rw-r--r--result_collection_api/opnfv_testapi/tornado_swagger/settings.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/result_collection_api/opnfv_testapi/tornado_swagger/settings.py b/result_collection_api/opnfv_testapi/tornado_swagger/settings.py
new file mode 100644
index 0000000..8f43c4a
--- /dev/null
+++ b/result_collection_api/opnfv_testapi/tornado_swagger/settings.py
@@ -0,0 +1,26 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+import os.path
+
+__author__ = 'serena'
+
+SWAGGER_VERSION = '1.2'
+
+SWAGGER_API_DOCS = 'swagger-api-docs'
+SWAGGER_API_LIST = 'swagger-api-list'
+SWAGGER_API_SPEC = 'swagger-api-spec'
+
+STATIC_PATH = os.path.join(os.path.dirname(os.path.normpath(__file__)),
+ 'static')
+
+default_settings = {
+ 'base_url': '/',
+ 'static_path': STATIC_PATH,
+ 'swagger_prefix': '/swagger',
+ 'api_version': 'v1.0',
+ 'api_key': '',
+ 'enabled_methods': ['get', 'post', 'put', 'patch', 'delete'],
+ 'exclude_namespaces': [],
+}
+
+models = []