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 and does not survive an API server restart.
@Tags misc
@Produce json
@Success 200 {object} object
@Failure 418 {object} object
@Router /pause [post]
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.