aboutsummaryrefslogtreecommitdiffstats
path: root/templates/swagger/v1_json.tmpl
diff options
context:
space:
mode:
authorNorwin <noerw@users.noreply.github.com>2020-12-22 03:47:17 +0000
committerGitHub <noreply@github.com>2020-12-22 04:47:17 +0100
commitc2ae432489a9e644d83069e2e3bae20b2f1f06eb (patch)
tree7174f27a4ea359c2afa42f12a07b81c557bba00f /templates/swagger/v1_json.tmpl
parent6f1dddf5c38e86d8cd89c19f13a924a83a99dea5 (diff)
downloadgitea-c2ae432489a9e644d83069e2e3bae20b2f1f06eb.tar.gz
gitea-c2ae432489a9e644d83069e2e3bae20b2f1f06eb.zip
Add user filter to issueTrackedTimes, enable usage for issue managers (#14081)
* add user filter to issueTrackedTimes fixes #14024 * update swagger * allow user filter for issue writers * improve swagger doc * return 404 on invalid user
Diffstat (limited to 'templates/swagger/v1_json.tmpl')
-rw-r--r--templates/swagger/v1_json.tmpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index bb3b6b4fed..d0303040c5 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -5842,6 +5842,12 @@
},
{
"type": "string",
+ "description": "optional filter by user (available for issue managers)",
+ "name": "user",
+ "in": "query"
+ },
+ {
+ "type": "string",
"format": "date-time",
"description": "Only show times updated after the given time. This is a timestamp in RFC 3339 format",
"name": "since",
@@ -8811,7 +8817,7 @@
},
{
"type": "string",
- "description": "optional filter by user",
+ "description": "optional filter by user (available for issue managers)",
"name": "user",
"in": "query"
},