aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r--routers/api/v1/api.go98
1 files changed, 49 insertions, 49 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index b413370ad2..6a98121b73 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -7,59 +7,59 @@
//
// This documentation describes the Gitea API.
//
-// Schemes: http, https
-// BasePath: /api/v1
-// Version: {{AppVer | JSEscape | Safe}}
-// License: MIT http://opensource.org/licenses/MIT
+// Schemes: http, https
+// BasePath: /api/v1
+// Version: {{AppVer | JSEscape | Safe}}
+// License: MIT http://opensource.org/licenses/MIT
//
-// Consumes:
-// - application/json
-// - text/plain
+// Consumes:
+// - application/json
+// - text/plain
//
-// Produces:
-// - application/json
-// - text/html
+// Produces:
+// - application/json
+// - text/html
//
-// Security:
-// - BasicAuth :
-// - Token :
-// - AccessToken :
-// - AuthorizationHeaderToken :
-// - SudoParam :
-// - SudoHeader :
-// - TOTPHeader :
+// Security:
+// - BasicAuth :
+// - Token :
+// - AccessToken :
+// - AuthorizationHeaderToken :
+// - SudoParam :
+// - SudoHeader :
+// - TOTPHeader :
//
-// SecurityDefinitions:
-// BasicAuth:
-// type: basic
-// Token:
-// type: apiKey
-// name: token
-// in: query
-// AccessToken:
-// type: apiKey
-// name: access_token
-// in: query
-// AuthorizationHeaderToken:
-// type: apiKey
-// name: Authorization
-// in: header
-// description: API tokens must be prepended with "token" followed by a space.
-// SudoParam:
-// type: apiKey
-// name: sudo
-// in: query
-// description: Sudo API request as the user provided as the key. Admin privileges are required.
-// SudoHeader:
-// type: apiKey
-// 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.
+// SecurityDefinitions:
+// BasicAuth:
+// type: basic
+// Token:
+// type: apiKey
+// name: token
+// in: query
+// AccessToken:
+// type: apiKey
+// name: access_token
+// in: query
+// AuthorizationHeaderToken:
+// type: apiKey
+// name: Authorization
+// in: header
+// description: API tokens must be prepended with "token" followed by a space.
+// SudoParam:
+// type: apiKey
+// name: sudo
+// in: query
+// description: Sudo API request as the user provided as the key. Admin privileges are required.
+// SudoHeader:
+// type: apiKey
+// 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