summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/swagger
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2019-12-12 05:23:05 +0100
committertechknowlogick <techknowlogick@gitea.io>2019-12-11 23:23:05 -0500
commitaceb1085c79e4c75268ce794a8ee84631382a403 (patch)
tree0e2a9137e07d04ff33c034f2a610e4a51fa0897a /routers/api/v1/swagger
parent382936a668c48b3c83fe80cdf138f76fb74a5f8f (diff)
downloadgitea-aceb1085c79e4c75268ce794a8ee84631382a403.tar.gz
gitea-aceb1085c79e4c75268ce794a8ee84631382a403.zip
[API] extend StopWatch (#9196)
* squash api-stopwatch * fix prepair logic! + add Tests * fix lint * more robust time compare * delete responce 202 -> 204 * change http responce in test too
Diffstat (limited to 'routers/api/v1/swagger')
-rw-r--r--routers/api/v1/swagger/issue.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/routers/api/v1/swagger/issue.go b/routers/api/v1/swagger/issue.go
index a78c2982fd..68c0a9a38d 100644
--- a/routers/api/v1/swagger/issue.go
+++ b/routers/api/v1/swagger/issue.go
@@ -85,6 +85,20 @@ type swaggerIssueDeadline struct {
Body api.IssueDeadline `json:"body"`
}
+// StopWatch
+// swagger:response StopWatch
+type swaggerResponseStopWatch struct {
+ // in:body
+ Body api.StopWatch `json:"body"`
+}
+
+// StopWatchList
+// swagger:response StopWatchList
+type swaggerResponseStopWatchList struct {
+ // in:body
+ Body []api.StopWatch `json:"body"`
+}
+
// EditReactionOption
// swagger:response EditReactionOption
type swaggerEditReactionOption struct {