summaryrefslogtreecommitdiffstats
path: root/templates/swagger
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2019-05-04 11:45:34 -0400
committerGitHub <noreply@github.com>2019-05-04 11:45:34 -0400
commit46373e765702a203bfcb576c9d3639314ef4965f (patch)
treea44ba4de8593a9ad7898683e0e6df80e0072ef17 /templates/swagger
parent1fa96629461ac4229932b0a4526fc2f60c88ec51 (diff)
downloadgitea-46373e765702a203bfcb576c9d3639314ef4965f.tar.gz
gitea-46373e765702a203bfcb576c9d3639314ef4965f.zip
Hash App token (#6724)
Diffstat (limited to 'templates/swagger')
-rw-r--r--templates/swagger/v1_json.tmpl10
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index b6160fc84d..134b9051b2 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -9458,8 +9458,11 @@
},
"responses": {
"AccessToken": {
- "description": "AccessToken represents a API access token.",
+ "description": "AccessToken represents an API access token.",
"headers": {
+ "hashed_token": {
+ "type": "string"
+ },
"id": {
"type": "integer",
"format": "int64"
@@ -9467,7 +9470,10 @@
"name": {
"type": "string"
},
- "sha1": {
+ "token": {
+ "type": "string"
+ },
+ "token_last_eight": {
"type": "string"
}
}