gitea: code.gitea.io/gitea/routers/api/v1 Index | Files | Directories

package v1

import "code.gitea.io/gitea/routers/api/v1"

Package v1 Gitea API.

This documentation describes the Gitea API.

Schemes: http, https
BasePath: /api/v1
Version: 1.1.1
License: MIT http://opensource.org/licenses/MIT

Consumes:
- application/json
- text/plain

Produces:
- application/json
- text/html

Security:
- BasicAuth :
- Token :
- AccessToken :
- AuthorizationHeaderToken :
- SudoParam :
- SudoHeader :

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.

swagger:meta

Index

Package Files

api.go

func RegisterRoutes Uses

func RegisterRoutes(m *macaron.Macaron)

RegisterRoutes registers all v1 APIs routes to web application. FIXME: custom form error response

Directories

PathSynopsis
admin
convert
misc
org
repo
swagger
user
utils

Package v1 imports 15 packages (graph) and is imported by 3 packages. Updated 2019-09-22. Refresh now. Tools for package owners.