diff options
author | Linda Wang <wangwulin@huawei.com> | 2017-09-12 07:37:19 +0000 |
---|---|---|
committer | Linda Wang <wangwulin@huawei.com> | 2017-09-19 10:33:39 +0000 |
commit | b621b6b4b70299a60ad3e26ed6b04450f84b603e (patch) | |
tree | 540adb705c5d3a32dbdf6c797292392bda0af140 /functest/api/server.py | |
parent | c3c326570b29276d5ac2f703f64fb5f797de62d2 (diff) |
Add swagger support for Rest API
JIRA: FUNCTEST-854
Change-Id: Ic010604d3ba0cc46092cf2a1ae8bb41afa73c920
Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/api/server.py')
-rw-r--r-- | functest/api/server.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/functest/api/server.py b/functest/api/server.py index c6eb0b3b..3200c1a2 100644 --- a/functest/api/server.py +++ b/functest/api/server.py @@ -20,6 +20,7 @@ import pkg_resources from flask import Flask from flask_restful import Api +from flasgger import Swagger from functest.api.base import ApiResource from functest.api.common import api_utils @@ -34,6 +35,7 @@ LOGGER = logging.getLogger(__name__) APP = Flask(__name__) API = Api(APP) +Swagger(APP) @APP.teardown_request |