aboutsummaryrefslogtreecommitdiffstats
path: root/templates/swagger/v1_json.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/swagger/v1_json.tmpl')
-rw-r--r--templates/swagger/v1_json.tmpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 28a33fb3d3..c601809a75 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -15551,6 +15551,12 @@
"name": "sudo",
"in": "query"
},
+ "TOTPHeader": {
+ "description": "Must be used in combination with BasicAuth if two-factor authentication is enabled.",
+ "type": "apiKey",
+ "name": "X-GITEA-OTP",
+ "in": "header"
+ },
"Token": {
"type": "apiKey",
"name": "token",
@@ -15575,6 +15581,9 @@
},
{
"SudoHeader": []
+ },
+ {
+ "TOTPHeader": []
}
]
}