summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-07-28 13:30:40 +0200
committerGitHub <noreply@github.com>2020-07-28 12:30:40 +0100
commit8bdc9795d8a5aa51bc1295dd1cf57006a5873343 (patch)
tree81ebd17da66318ca7909284021319be10a552e5c /templates
parent78cbd0ca72619a25849edc3460ec0c492b838a59 (diff)
downloadgitea-8bdc9795d8a5aa51bc1295dd1cf57006a5873343.tar.gz
gitea-8bdc9795d8a5aa51bc1295dd1cf57006a5873343.zip
Add name filter to API for GetMilestoneList (#12336)
Adds a name filter to the API for GetMilestoneList Includes a small refactor: merge GetMilestones and GetMilestonesByRepoID Close #12260 Needed for https://gitea.com/gitea/go-sdk/issues/383 and https://gitea.com/gitea/tea/pulls/149
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 795e179cb9..28a33fb3d3 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -6165,6 +6165,12 @@
"in": "query"
},
{
+ "type": "string",
+ "description": "filter by milestone name",
+ "name": "name",
+ "in": "query"
+ },
+ {
"type": "integer",
"description": "page number of results to return (1-based)",
"name": "page",