diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-05-31 08:59:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-05-31 08:59:42 +0000 |
commit | 1e2c8d51ccc9720758f01e418957fdd826c278df (patch) | |
tree | 6d4980a983b4d01f9f925b7f8407a18541c1dc2c /utils/test/result_collection_api/resources/handlers.py | |
parent | 16dff1bf982d842bcdd717ff8c69627f1cdbdb52 (diff) | |
parent | c013525b837ab047cd6a3583b31b4a8253cb7932 (diff) |
Merge "bugfix: version return body is inconsistent with the designed model"
Diffstat (limited to 'utils/test/result_collection_api/resources/handlers.py')
-rw-r--r-- | utils/test/result_collection_api/resources/handlers.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/test/result_collection_api/resources/handlers.py b/utils/test/result_collection_api/resources/handlers.py index a2c6b8d01..0977ef07e 100644 --- a/utils/test/result_collection_api/resources/handlers.py +++ b/utils/test/result_collection_api/resources/handlers.py @@ -223,7 +223,8 @@ class VersionHandler(GenericApiHandler): @swagger.operation(nickname='list') def get(self): """ - @description: Display a message for the API version + @description: list all supported versions @rtype: L{Versions} """ - self.finish_request([{'v1': 'basics'}]) + versions = [{'version': 'v1.0', 'description': 'basics'}] + self.finish_request({'versions': versions}) |