MCPcopy Create free account
hub / github.com/gotify/server / ApplicationParams

Struct ApplicationParams

api/application.go:39–57  ·  view source on GitHub ↗

Application Params Model Params allowed to create or update Applications. swagger:model ApplicationParams

Source from the content-addressed store, hash-verified

37//
38// swagger:model ApplicationParams
39type ApplicationParams struct {
40 // The application name. This is how the application should be displayed to the user.
41 //
42 // required: true
43 // example: Backup Server
44 Name string `form:"name" query:"name" json:"name" binding:"required"`
45 // The description of the application.
46 //
47 // example: Backup server for the interwebs
48 Description string `form:"description" query:"description" json:"description"`
49 // The default priority of messages sent by this application. Defaults to 0.
50 //
51 // example: 5
52 DefaultPriority int `form:"defaultPriority" query:"defaultPriority" json:"defaultPriority"`
53 // The sortKey for the application. Uses fractional indexing.
54 //
55 // example: a1
56 SortKey string `form:"sortKey" query:"sortKey" json:"sortKey"`
57}
58
59// CreateApplication creates an application and returns the access token.
60// swagger:operation POST /application application createApp

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected