diff options
author | 2016-05-30 19:14:52 +0800 | |
---|---|---|
committer | 2016-05-30 20:05:11 +0800 | |
commit | 7358b5733d9e25f68b44b366ebe7714544b24c6c (patch) | |
tree | 4176ea8a20ce2239fb18c3490b3e41e34f88eef8 /result_collection_api/resources/models.py | |
parent | da918db679b094948cf95670f0fa74a4528ee336 (diff) |
swagger-ize dashboard and version apis of testAPI
JIRA: FUNCTEST-273
Change-Id: I6f2b1de5488ba684d0c00e9f40daee2487a011cc
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'result_collection_api/resources/models.py')
-rw-r--r-- | result_collection_api/resources/models.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/result_collection_api/resources/models.py b/result_collection_api/resources/models.py index b4094dd..3c834fd 100644 --- a/result_collection_api/resources/models.py +++ b/result_collection_api/resources/models.py @@ -13,6 +13,7 @@ # feng.xiaowei@zte.com.cn mv TestCase to testcase_models.py 5-20-2016
# feng.xiaowei@zte.com.cn mv TestResut to result_models.py 5-23-2016
##############################################################################
+from tornado_swagger_ui.tornado_swagger import swagger
class CreateResponse(object):
@@ -30,3 +31,19 @@ class CreateResponse(object): def format(self):
return {'href': self.href}
+
+
+@swagger.model()
+class Versions(object):
+ """
+ @ptype versions: C{list} of L{Version}
+ """
+ def __init__(self, versions):
+ self.versions = versions
+
+
+@swagger.model()
+class Version(object):
+ def __init__(self, version=None, description=None):
+ self.version = version
+ self.description = description
|