mirror of https://github.com/dirtbags/moth.git
json, not yaml
This commit is contained in:
parent
11482d5a4d
commit
b73df73b94
38
docs/api.md
38
docs/api.md
|
@ -22,8 +22,8 @@ The server returns a
|
||||||
[JSend](https://labs.omniti.com/labs/jsend) response:
|
[JSend](https://labs.omniti.com/labs/jsend) response:
|
||||||
|
|
||||||
{
|
{
|
||||||
status: "success",
|
"status": "success",
|
||||||
data: "Any JS data type here"
|
"data": "Any JS data type here"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -61,8 +61,8 @@ On failure, message contains an English explanation of why.
|
||||||
https://server/RegisterTeam?teamId=8b1292ca
|
https://server/RegisterTeam?teamId=8b1292ca
|
||||||
|
|
||||||
{
|
{
|
||||||
status: "success",
|
"status": "success",
|
||||||
data: null
|
"data": null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -81,8 +81,8 @@ Return all currently-open puzzles.
|
||||||
https://server/GetPuzzleList
|
https://server/GetPuzzleList
|
||||||
|
|
||||||
{
|
{
|
||||||
status: "success",
|
"status": "success",
|
||||||
data: {
|
"data": {
|
||||||
"puzzles": {
|
"puzzles": {
|
||||||
"sequence": [1, 2],
|
"sequence": [1, 2],
|
||||||
"codebreaking": [10],
|
"codebreaking": [10],
|
||||||
|
@ -114,8 +114,8 @@ Return a puzzle.
|
||||||
https://server/GetPuzzle?category=sequence&points=1
|
https://server/GetPuzzle?category=sequence&points=1
|
||||||
|
|
||||||
{
|
{
|
||||||
status: "success",
|
"status": "success",
|
||||||
data: {
|
"data": {
|
||||||
"authors": ["neale"],
|
"authors": ["neale"],
|
||||||
"hashes": [177627],
|
"hashes": [177627],
|
||||||
"files": {
|
"files": {
|
||||||
|
@ -143,13 +143,13 @@ Note: team number may change between calls.
|
||||||
https://server/GetEventsLog
|
https://server/GetEventsLog
|
||||||
|
|
||||||
{
|
{
|
||||||
status: "success",
|
"status": "success",
|
||||||
data: {
|
"data": {
|
||||||
teams: {
|
"teams": {
|
||||||
0: "Zelda",
|
0: "Zelda",
|
||||||
1: "Defender"
|
1: "Defender"
|
||||||
},
|
},
|
||||||
log: [
|
"log": [
|
||||||
[1526478368, 0, "sequence", 1],
|
[1526478368, 0, "sequence", 1],
|
||||||
[1526478524, 1, "sequence", 1],
|
[1526478524, 1, "sequence", 1],
|
||||||
[1526478536, 0, "nocode", 1]
|
[1526478536, 0, "nocode", 1]
|
||||||
|
@ -180,9 +180,9 @@ Submit an answer to a puzzle.
|
||||||
https://server/SubmitAnswer?teamId=8b1292ca&category=sequence&points=1&answer=6
|
https://server/SubmitAnswer?teamId=8b1292ca&category=sequence&points=1&answer=6
|
||||||
|
|
||||||
{
|
{
|
||||||
status: "success",
|
"status": "success",
|
||||||
data: {
|
"data": {
|
||||||
epilogue: "That's right: in base 10, 5 + 1 = 6."
|
"epilogue": "That's right: in base 10, 5 + 1 = 6."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,9 +207,9 @@ Submit a token for points
|
||||||
https://server/SubmitToken?teamId=8b1292ca&token=wat:30:xylep-radar-nanox
|
https://server/SubmitToken?teamId=8b1292ca&token=wat:30:xylep-radar-nanox
|
||||||
|
|
||||||
{
|
{
|
||||||
status: "success",
|
"status": "success",
|
||||||
data: {
|
"data": {
|
||||||
category: "wat",
|
"category": "wat",
|
||||||
points: 30
|
"points": 30
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue