aboutsummaryrefslogtreecommitdiffstats
path: root/templates/swagger
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2018-09-07 04:31:29 +0100
committertechknowlogick <techknowlogick@users.noreply.github.com>2018-09-06 23:31:29 -0400
commitd293a2b9d6722dffde7998c953c3087e47a38a83 (patch)
tree9fd63e39b27e51c8ca6360fd0cf4792e075c9b4a /templates/swagger
parente6a03813d463bc0c624a3c40fb615cacc006e265 (diff)
downloadgitea-d293a2b9d6722dffde7998c953c3087e47a38a83.tar.gz
gitea-d293a2b9d6722dffde7998c953c3087e47a38a83.zip
Add sudo functionality to the API (#4809)
Diffstat (limited to 'templates/swagger')
-rw-r--r--templates/swagger/v1_json.tmpl18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 598813bfc0..b4b65563dc 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -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": []
}
]
} \ No newline at end of file