diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-12-26 17:36:08 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-12-26 18:42:12 +0800 |
commit | d6eaa7bd0efb5778231426d2c7f913e7e1a3a3a6 (patch) | |
tree | 166da3a4a471ecdf45a3d8b4f88839e5d48eddf8 /utils/test/testapi | |
parent | 53ed9e36a13d03455fc04b3f54ed290037359f6b (diff) |
correct swagger model of TestAPI
Change-Id: I101283cb118416823a4d1c77b3de6d7882135f1e
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/testapi')
-rw-r--r-- | utils/test/testapi/opnfv_testapi/resources/models.py | 1 | ||||
-rw-r--r-- | utils/test/testapi/opnfv_testapi/resources/result_models.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/utils/test/testapi/opnfv_testapi/resources/models.py b/utils/test/testapi/opnfv_testapi/resources/models.py index a281c66d8..f518c97a0 100644 --- a/utils/test/testapi/opnfv_testapi/resources/models.py +++ b/utils/test/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/utils/test/testapi/opnfv_testapi/resources/result_models.py b/utils/test/testapi/opnfv_testapi/resources/result_models.py index 30119020b..50445fc22 100644 --- a/utils/test/testapi/opnfv_testapi/resources/result_models.py +++ b/utils/test/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): |