mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-24 17:25:19 +08:00
Add TOTP header to Swagger Documentation (#12402)
This commit is contained in:
@ -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": []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user