mirror of https://github.com/dirtbags/moth.git
Document all parameters
This commit is contained in:
parent
ede420ab9b
commit
da2caa247d
17
docs/api.md
17
docs/api.md
|
@ -96,6 +96,11 @@ GetPuzzle(category, points)
|
|||
|
||||
Return a puzzle.
|
||||
|
||||
Parameters:
|
||||
|
||||
* category: name of category to fetch from
|
||||
* points: point value of the puzzle to fetch
|
||||
|
||||
Return data:
|
||||
|
||||
* authors: List of puzzle authors
|
||||
|
@ -158,6 +163,13 @@ SubmitAnswer(teamId, category, points, answer)
|
|||
|
||||
Submit an answer to a puzzle.
|
||||
|
||||
Parameters:
|
||||
|
||||
* teamId: Team ID (optional: if ommitted, answer is verified but no points are awarded)
|
||||
* category: category name of puzzle
|
||||
* points: point value of puzzle
|
||||
* answer: attempted answer
|
||||
|
||||
Example:
|
||||
|
||||
https://server/SubmitAnswer?teamId=8b1292ca&category=sequence&points=1&answer=6
|
||||
|
@ -172,6 +184,11 @@ SubmitToken(teamId, token)
|
|||
|
||||
Submit a token for points
|
||||
|
||||
Parameters:
|
||||
|
||||
* teamId: Team ID
|
||||
* token: Token being submitted
|
||||
|
||||
Return data:
|
||||
|
||||
* category: category for which this token awarded points
|
||||
|
|
Loading…
Reference in New Issue