53 lines
882 B
Go
53 lines
882 B
Go
|
package swagger
|
||
|
|
||
|
import "git.kolaente.de/konrad/list/models"
|
||
|
|
||
|
// Message
|
||
|
// swagger:response Message
|
||
|
type swaggerResponseMessage struct {
|
||
|
// in:body
|
||
|
Body models.Message `json:"body"`
|
||
|
}
|
||
|
|
||
|
// ================
|
||
|
// User definitions
|
||
|
// ================
|
||
|
|
||
|
// User Object
|
||
|
// swagger:response User
|
||
|
type swaggerResponseUser struct {
|
||
|
// in:body
|
||
|
Body models.User `json:"body"`
|
||
|
}
|
||
|
|
||
|
// Token
|
||
|
// swagger:response Token
|
||
|
type swaggerResponseToken struct {
|
||
|
// The body message
|
||
|
// in:body
|
||
|
Body struct {
|
||
|
// The token
|
||
|
//
|
||
|
// Required: true
|
||
|
Token string `json:"token"`
|
||
|
} `json:"body"`
|
||
|
}
|
||
|
|
||
|
// ================
|
||
|
// List definitions
|
||
|
// ================
|
||
|
|
||
|
// List
|
||
|
// swagger:response List
|
||
|
type swaggerResponseLIst struct {
|
||
|
// in:body
|
||
|
Body models.List `json:"body"`
|
||
|
}
|
||
|
|
||
|
// ListItem
|
||
|
// swagger:response ListItem
|
||
|
type swaggerResponseLIstItem struct {
|
||
|
// in:body
|
||
|
Body models.ListItem `json:"body"`
|
||
|
}
|