6543
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
15 additions and
0 deletions
-
routers/api/v1/api.go
-
templates/swagger/v1_json.tmpl
|
|
@ -27,6 +27,7 @@ |
|
|
|
// - AuthorizationHeaderToken :
|
|
|
|
// - SudoParam :
|
|
|
|
// - SudoHeader :
|
|
|
|
// - TOTPHeader :
|
|
|
|
//
|
|
|
|
// SecurityDefinitions:
|
|
|
|
// BasicAuth:
|
|
|
@ -54,6 +55,11 @@ |
|
|
|
// name: Sudo
|
|
|
|
// in: header
|
|
|
|
// description: Sudo API request as the user provided as the key. Admin privileges are required.
|
|
|
|
// TOTPHeader:
|
|
|
|
// type: apiKey
|
|
|
|
// name: X-GITEA-OTP
|
|
|
|
// in: header
|
|
|
|
// description: Must be used in combination with BasicAuth if two-factor authentication is enabled.
|
|
|
|
//
|
|
|
|
// swagger:meta
|
|
|
|
package v1 |
|
|
|
|
|
@ -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": [] |
|
|
|
} |
|
|
|
] |
|
|
|
} |