summaryrefslogtreecommitdiffstats
path: root/api/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/views.py')
-rw-r--r--api/views.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/api/views.py b/api/views.py
index ee13b47a9..bdff7c0d9 100644
--- a/api/views.py
+++ b/api/views.py
@@ -25,7 +25,7 @@ TestCaseActionArgsOptsTaskArgModel = models.TestCaseActionArgsOptsTaskArgModel
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()
@@ -35,6 +35,18 @@ class SamplesAction(ApiResource):
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()
+
+
ResultModel = models.ResultModel