Documentation ¶
Index ¶
- func CreateHandler(api *api.API) func(c *gin.Context)
- func DeleteHandler(api *api.API) func(c *gin.Context)
- func GetHandler(api *api.API) func(c *gin.Context)
- func MGetHandler(api *api.API) func(c *gin.Context)
- func UpdateHandler(api *api.API) func(c *gin.Context)
- func UsersHandler(api *api.API) func(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHandler ¶
Creates a new team on databse. Responses:
- 400 If invalid body.
- 400 If json fields are invalid.
- 400 If ident is already in use.
- 200 If succeeded.
func MGetHandler ¶
Get multi teams on databse Params:
- "limit" Limit of teams returned. Default is 30, max is 30, min is 0.
- "offset" Offset for searching. Default is 0, min is 0.
Responses:
- 400 If invalid params.
- 200 If succeeded.
func UpdateHandler ¶
Updates a team on database. Responses:
- 400 If invalid body.
- 400 If json fields are invalid
- 400 If ident is already in use.
- 404 If team does not exists.
- 200 If succeeded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.