add yardstick_user_interface chapter in userguide
[yardstick.git] / api / views.py
index 69ca891..9fd236f 100644 (file)
@@ -6,6 +6,7 @@
 # which accompanies this distribution, and is available at
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
+from __future__ import absolute_import
 import logging
 import os
 
@@ -29,13 +30,32 @@ class Asynctask(ApiResource):
         return self._dispatch_get()
 
 
+class Testcases(ApiResource):
+    def get(self):
+        return self._dispatch_get()
+
+
 class ReleaseAction(ApiResource):
-    @swag_from(os.getcwd() + '/swagger/docs/testcases.yaml')
+    @swag_from(os.getcwd() + '/swagger/docs/release_action.yaml')
     def post(self):
         return self._dispatch_post()
 
 
 class SamplesAction(ApiResource):
+
+    def post(self):
+        return self._dispatch_post()
+
+
+TestSuiteActionModel = models.TestSuiteActionModel
+TestSuiteActionArgsModel = models.TestSuiteActionArgsModel
+TestSuiteActionArgsOptsModel = models.TestSuiteActionArgsOptsModel
+TestSuiteActionArgsOptsTaskArgModel = \
+    models.TestSuiteActionArgsOptsTaskArgModel
+
+
+class TestsuitesAction(ApiResource):
+    @swag_from(os.getcwd() + '/swagger/docs/testsuites_action.yaml')
     def post(self):
         return self._dispatch_post()
 
@@ -44,11 +64,13 @@ ResultModel = models.ResultModel
 
 
 class Results(ApiResource):
+
     @swag_from(os.getcwd() + '/swagger/docs/results.yaml')
     def get(self):
         return self._dispatch_get()
 
 
 class EnvAction(ApiResource):
+
     def post(self):
         return self._dispatch_post()