forked from kevadesu/forgejo
Add sudo functionality to the API (#4809)
This commit is contained in:
parent
e6a03813d4
commit
d293a2b9d6
4 changed files with 95 additions and 1 deletions
|
@ -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": []
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue