Documentation
¶
Overview ¶
Package misc contains routes that don't belong in other categories. This includes error routes and API config routes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
GetConfig is a route that returns the api configuration file. This can be useful for frontends to determine the list of valid boxes, services, and user lists.
@Summary Get API configuration
@Description Returns the loaded API config, including box definitions, user lists, and team count. Useful for building dynamic PCR forms.
@Tags misc
@Produce json
@Success 200 {object} config.APIConfigSpec
@Router /config [get]
func NoRoute ¶
NoRoute responds with a 404 when no other route is matched. Provides the user a list of "similar" endpoints available. This is helpful while manually testing. To be fully accurate, this needs to be the last route registered on the server.
func Pause ¶
Pause handles quincy pause. This for things like lunch during a competition.
@Summary Pause the competition
@Description Halts scoring for planned interruptions such as a lunch break. While paused, agents requesting a check receive a no-op assignment instead, so no checks run and no scores are recorded. Returns 418 if the competition is already paused. The pause state is held in memory: an API server restart discards it and falls back to the start_paused setting in the config.
@Tags misc
@Produce json
@Success 200 {object} object
@Failure 418 {object} object
@Router /pause [post]
func PauseStatus ¶ added in v0.0.55
PauseStatus handles reporting whether quincy is currently paused.
@Summary Get the competition pause status
@Description Reports whether the competition is currently paused and when it entered that state. Returns an object with two fields: `is_paused` (bool) and `since` (RFC 3339 timestamp). The timestamp is the moment of the last pause or unpause, or the time the API server started if the state has not changed since boot.
@Tags misc
@Produce json
@Success 200 {object} object
@Router /pause-status [get]
func Unpause ¶
Unpause handles quincy unpause. This for things like lunch during a competition.
@Summary Resume the competition
@Description Resumes scoring after a pause. Agents begin receiving real checks again from wherever the queue left off. Returns 418 if the competition is not currently paused.
@Tags misc
@Produce json
@Success 200 {object} object
@Failure 418 {object} object
@Router /unpause [post]
Types ¶
This section is empty.