attach version number to url in testAPI
[releng.git] / utils / test / result_collection_api / resources / handlers.py
index 268d19a..6747767 100644 (file)
@@ -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):