diff options
author | 2016-05-25 22:56:11 +0800 | |
---|---|---|
committer | 2016-05-26 14:18:08 +0800 | |
commit | e6b2ed1749f5daad7a15a878df301e017a15d832 (patch) | |
tree | 9ff6949f543269c06c0d7828f6a50a1b3b6ac807 /result_collection_api/resources/handlers.py | |
parent | f204fed9d8519f994b085a1139f036bc40fcddbc (diff) |
attach version number to url in testAPI
version - /versions
api - /api/v1/pods(projects/results)
dashboard - /dashboard/v1/results
I tried to make the code smart, but in vain, sad......
JIRA: FUNCTEST-261
Change-Id: I3e9e3ad7180a6c6349fd743e24eafea07bdefd1d
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'result_collection_api/resources/handlers.py')
-rw-r--r-- | result_collection_api/resources/handlers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/result_collection_api/resources/handlers.py b/result_collection_api/resources/handlers.py index 268d19a..6747767 100644 --- a/result_collection_api/resources/handlers.py +++ b/result_collection_api/resources/handlers.py @@ -73,10 +73,10 @@ class GenericApiHandler(RequestHandler): return CreateResponse(href=href).format() -class VersionHandler(RequestHandler): +class VersionHandler(GenericApiHandler): """ Display a message for the API version """ def get(self): - self.write("Collection of test result API, v1") + self.finish_request([{'v1': 'basics'}]) class PodHandler(GenericApiHandler): |