Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseAPIHandler ¶ added in v0.0.9
BaseHandler godoc
@Summary Base api handler @Description List available endpoints @Tags root @Accept */* @Produce json @Success 200 {array} string "list of available endpoints" @Router / [get]
func CategoryHandler ¶ added in v0.0.9
CategoryHandler godoc.
@Summary Returns a list of categories. @Description Returns a list of categories. @Tags api @Accept json @Produce json @Param random query bool false "If exists, returns up to `limit` random records." @Param id query int64 false "If exists, returns the record with the given id." @Param page query int64 false "Paging offset" @Param limit query int64 false "Limit the number of records returned" @Success 200 {array} models.Category @Router /category [get]
func ClueHandler ¶ added in v0.0.9
ClueHandler godoc
@Summary Returns a list of clues @Description Returns a list of clues @Tags api @Accept */* @Produce json @Param random query bool false "Random Clue" @Param id query integer false "Clue ID" @Param game query integer false "Game ID" @Param category query integer false "Category ID" @Success 200 {array} models.Clue @Failure 400 {object} utils.HTTPError @Failure 500 {object} utils.HTTPError @Router /clue [get]
func DebugUIHandler ¶
func GameHandler ¶ added in v0.0.9
GameHandler godoc
@Summary Returns a list of games @Description Returns a list of games @Tags api @Accept */* @Produce json @Param filter query Filter false "Filter games" @Success 200 {array} models.Game @Failure 500 {object} utils.HTTPError @Router /game [get]
Types ¶
type ClueFilter ¶ added in v0.0.9
type StringResponse ¶
type StringResponse struct {
Message string `json:"message" example:"some string value"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.