apps

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BasePath = "/v1/apps"

BasePath is the base path for this api module, excluding the api prefix

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

func New

func New(processor *processing.Processor) *Module

func (*Module) AppsPOSTHandler

func (m *Module) AppsPOSTHandler(c *gin.Context)

AppsPOSTHandler swagger:operation POST /api/v1/apps appCreate

Register a new application on this instance.

The registered application can be used to obtain an application token. This can then be used to register a new account, or (through user auth) obtain an access token.

The parameters can also be given in the body of the request, as JSON, if the content-type is set to 'application/json'. The parameters can also be given in the body of the request, as XML, if the content-type is set to 'application/xml'.

---
tags:
- apps

consumes:
- application/json
- application/xml
- application/x-www-form-urlencoded

produces:
- application/json

responses:
	'200':
		description: "The newly-created application."
		schema:
			"$ref": "#/definitions/application"
	'400':
		description: bad request
	'401':
		description: unauthorized
	'403':
		description: forbidden
	'404':
		description: not found
	'406':
		description: not acceptable
	'500':
		description: internal server error

func (*Module) Route

func (m *Module) Route(attachHandler func(method string, path string, f ...gin.HandlerFunc) gin.IRoutes)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL