summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-12-26 17:36:08 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-12-26 18:42:12 +0800
commit5599da2f9730e17b515512b743d1d96ddcc2de38 (patch)
tree00f97185a104758ba3325105f29d9a66cab8916c
parent0d6df87202f4039ffff5e23957103cc1c8ca732a (diff)
correct swagger model of TestAPI
Change-Id: I101283cb118416823a4d1c77b3de6d7882135f1e Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
-rw-r--r--testapi/opnfv_testapi/resources/models.py1
-rw-r--r--testapi/opnfv_testapi/resources/result_models.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/testapi/opnfv_testapi/resources/models.py b/testapi/opnfv_testapi/resources/models.py
index a281c66..f518c97 100644
--- a/testapi/opnfv_testapi/resources/models.py
+++ b/testapi/opnfv_testapi/resources/models.py
@@ -70,6 +70,7 @@ class ModelBase(object):
return t
+@swagger.model()
class CreateResponse(ModelBase):
def __init__(self, href=''):
self.href = href
diff --git a/testapi/opnfv_testapi/resources/result_models.py b/testapi/opnfv_testapi/resources/result_models.py
index 3011902..50445fc 100644
--- a/testapi/opnfv_testapi/resources/result_models.py
+++ b/testapi/opnfv_testapi/resources/result_models.py
@@ -112,7 +112,7 @@ class TestResult(models.ModelBase):
@swagger.model()
class TestResults(models.ModelBase):
"""
- @property rgit esults:
+ @property results:
@ptype results: C{list} of L{TestResult}
"""
def __init__(self):