From cdff7d8d41693971f4c5dc8dd18d6907a5e31937 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Thu, 9 Jun 2016 02:10:01 +0800 Subject: 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 --- utils/test/result_collection_api/etc/config.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'utils/test/result_collection_api/etc/config.ini') diff --git a/utils/test/result_collection_api/etc/config.ini b/utils/test/result_collection_api/etc/config.ini index f703cc6c4..16346bf36 100644 --- a/utils/test/result_collection_api/etc/config.ini +++ b/utils/test/result_collection_api/etc/config.ini @@ -5,8 +5,12 @@ # Mongo auth url => mongodb://user1:pwd1@host1/?authSource=db1 url = mongodb://127.0.0.1:27017/ dbname = test_results_collection + [api] # Listening port port = 8000 # With debug_on set to true, error traces will be shown in HTTP responses -debug = True \ No newline at end of file +debug = True + +[swagger] +base_url = http://testresults.opnfv.org/test \ No newline at end of file -- cgit 1.2.3-korg