summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-09-14 13:48:03 +0200
committerGitHub <noreply@github.com>2020-09-14 14:48:03 +0300
commit00a806de681088805a6f1f6632c0a411ff03c256 (patch)
treeb9035e9100c714b7cbf4201077731f7a0a44c1bb /templates
parent33f606ce4cf2aeb25013122cc7b9c2ce1d688289 (diff)
downloadgitea-00a806de681088805a6f1f6632c0a411ff03c256.tar.gz
gitea-00a806de681088805a6f1f6632c0a411ff03c256.zip
[API] Milestone endpoints accept names too (#12649)
* API: Milestone endpoints accept names too * add test * rename Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl15
1 files changed, 6 insertions, 9 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index a5840f2bab..4b78b40dd2 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -6353,9 +6353,8 @@
"required": true
},
{
- "type": "integer",
- "format": "int64",
- "description": "id of the milestone",
+ "type": "string",
+ "description": "the milestone to get, identified by ID and if not available by name",
"name": "id",
"in": "path",
"required": true
@@ -6389,9 +6388,8 @@
"required": true
},
{
- "type": "integer",
- "format": "int64",
- "description": "id of the milestone to delete",
+ "type": "string",
+ "description": "the milestone to delete, identified by ID and if not available by name",
"name": "id",
"in": "path",
"required": true
@@ -6431,9 +6429,8 @@
"required": true
},
{
- "type": "integer",
- "format": "int64",
- "description": "id of the milestone",
+ "type": "string",
+ "description": "the milestone to edit, identified by ID and if not available by name",
"name": "id",
"in": "path",
"required": true