summaryrefslogtreecommitdiffstats
path: root/templates/swagger
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-08-28 10:09:33 +0200
committerGitHub <noreply@github.com>2020-08-28 11:09:33 +0300
commitd5b6931dbefff674fd84237555a7c2e284b63c5a (patch)
tree8e68a4f12b16ed1ae782668459cfcb19e78fa7d4 /templates/swagger
parenteb1bf2377be15deb593a3e2426558d92c1973107 (diff)
downloadgitea-d5b6931dbefff674fd84237555a7c2e284b63c5a.tar.gz
gitea-d5b6931dbefff674fd84237555a7c2e284b63c5a.zip
[API] Delete Token accept names too (#12366)
* Delete Token accept names too * better description Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates/swagger')
-rw-r--r--templates/swagger/v1_json.tmpl8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index f1e0b0080d..4d6333ac4e 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -10635,9 +10635,8 @@
"required": true
},
{
- "type": "integer",
- "format": "int64",
- "description": "token to be deleted",
+ "type": "string",
+ "description": "token to be deleted, identified by ID and if not available by name",
"name": "token",
"in": "path",
"required": true
@@ -10646,6 +10645,9 @@
"responses": {
"204": {
"$ref": "#/responses/empty"
+ },
+ "422": {
+ "$ref": "#/responses/error"
}
}
}