summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/swagger/cron.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-08-24 16:48:15 +0100
committerGitHub <noreply@github.com>2020-08-24 11:48:15 -0400
commit2ae8c7ab1cc1311a493fa4efa205412664f54f96 (patch)
treef2259efafea334ef4ff3cae6de952a1d0946623f /routers/api/v1/swagger/cron.go
parentee047312a1a3238a8504200f7ded8536ebc838e3 (diff)
downloadgitea-2ae8c7ab1cc1311a493fa4efa205412664f54f96.tar.gz
gitea-2ae8c7ab1cc1311a493fa4efa205412664f54f96.zip
Add cron running API (#12421)
* Add cron running API Signed-off-by: Andrew Thornton <art27@cantab.net> * Apply suggestions from code review * placate-swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * return not found Signed-off-by: Andrew Thornton <art27@cantab.net> * Apply suggestions from code review Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers/api/v1/swagger/cron.go')
-rw-r--r--routers/api/v1/swagger/cron.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/routers/api/v1/swagger/cron.go b/routers/api/v1/swagger/cron.go
new file mode 100644
index 0000000000..85f2ed0e35
--- /dev/null
+++ b/routers/api/v1/swagger/cron.go
@@ -0,0 +1,16 @@
+// Copyright 2020 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
+package swagger
+
+import (
+ api "code.gitea.io/gitea/modules/structs"
+)
+
+// CronList
+// swagger:response CronList
+type swaggerResponseCronList struct {
+ // in:body
+ Body []api.Cron `json:"body"`
+}