vikunja-api/routes/api/v1/swagger/responses.go

96 lines
1.6 KiB
Go
Raw Normal View History

2018-06-13 13:45:22 +02:00
package swagger
2018-07-25 16:24:46 +02:00
import "code.vikunja.io/api/models"
2018-06-13 13:45:22 +02:00
// 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"`
}
2018-08-30 08:09:17 +02:00
// ListTask
// swagger:response ListTask
type swaggerResponseLIstTask struct {
2018-06-13 13:45:22 +02:00
// in:body
2018-08-30 08:09:17 +02:00
Body models.ListTask `json:"body"`
2018-06-13 13:45:22 +02:00
}
2018-07-03 08:48:28 +02:00
// ================
// Namespace definitions
// ================
// Namespace
// swagger:response Namespace
type swaggerResponseNamespace struct {
// in:body
Body models.Namespace `json:"body"`
}
2018-08-29 15:13:54 +02:00
// ================
// Team definitions
// ================
// Team
// swagger:response Team
type swaggerResponseTeam struct {
// in:body
Body models.Team `json:"body"`
}
// TeamMember
// swagger:response TeamMember
type swaggerResponseTeamMember struct {
// in:body
Body models.TeamMember `json:"body"`
}
// TeamList
// swagger:response TeamList
type swaggerResponseTeamList struct {
// in:body
Body models.TeamList `json:"body"`
}
// TeamNamespace
// swagger:response TeamNamespace
type swaggerResponseTeamNamespace struct {
// in:body
Body models.TeamNamespace `json:"body"`
}