diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-06-09 02:10:01 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-06-09 02:17:39 +0800 |
commit | cdff7d8d41693971f4c5dc8dd18d6907a5e31937 (patch) | |
tree | c6d0f727acb878544ead1e8a864338490c16d03f /utils/test/result_collection_api/opnfv_testapi/cmd | |
parent | 354761f94cdd7283740a487d5384ef9b233b66c3 (diff) |
solve access testresults.opnfv.org/swagger/spec.html fail issue in testAPI
add swagger configuration in config.ini
add swagger.docs() process in server.py
add swagger configuration parse in config.py
add basePath() in settings.py
change 'basePath' item assignment in views.py
JIRA: FUNCTEST-305
Change-Id: I049991d4d53b78755ee971021ec0ad2458f5da60
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/result_collection_api/opnfv_testapi/cmd')
-rw-r--r-- | utils/test/result_collection_api/opnfv_testapi/cmd/server.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/test/result_collection_api/opnfv_testapi/cmd/server.py b/utils/test/result_collection_api/opnfv_testapi/cmd/server.py index 9022b9aa1..c3d734607 100644 --- a/utils/test/result_collection_api/opnfv_testapi/cmd/server.py +++ b/utils/test/result_collection_api/opnfv_testapi/cmd/server.py @@ -49,6 +49,8 @@ CONF = APIConfig().parse(args.config_file) client = motor.MotorClient(CONF.mongo_url) db = client[CONF.mongo_dbname] +swagger.docs(base_url=CONF.swagger_base_url) + def make_app(): return swagger.Application( |