mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Add sudo functionality to the API (#4809)
This commit is contained in:
@@ -8008,6 +8008,18 @@
|
||||
"BasicAuth": {
|
||||
"type": "basic"
|
||||
},
|
||||
"SudoHeader": {
|
||||
"description": "Sudo API request as the user provided as the key. Admin privileges are required.",
|
||||
"type": "apiKey",
|
||||
"name": "Sudo",
|
||||
"in": "header"
|
||||
},
|
||||
"SudoParam": {
|
||||
"description": "Sudo API request as the user provided as the key. Admin privileges are required.",
|
||||
"type": "apiKey",
|
||||
"name": "sudo",
|
||||
"in": "query"
|
||||
},
|
||||
"Token": {
|
||||
"type": "apiKey",
|
||||
"name": "token",
|
||||
@@ -8026,6 +8038,12 @@
|
||||
},
|
||||
{
|
||||
"AuthorizationHeaderToken": []
|
||||
},
|
||||
{
|
||||
"SudoParam": []
|
||||
},
|
||||
{
|
||||
"SudoHeader": []
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user