/api/v3 URL prefix

This commit is contained in:
Neale Pickett 2018-05-23 18:19:36 +00:00
parent 2d20bb8f25
commit 7b83448873
1 changed files with 7 additions and 7 deletions

View File

@ -16,7 +16,7 @@ Specification
You make requests as HTTP GET query arguments: You make requests as HTTP GET query arguments:
https://server/path/to/endpoint?var1=val1&var2=val2 https://server/path/elements/api/v3/endpoint?var1=val1&var2=val2
The server returns a The server returns a
[JSend](https://labs.omniti.com/labs/jsend) response: [JSend](https://labs.omniti.com/labs/jsend) response:
@ -59,7 +59,7 @@ On failure, message contains an English explanation of why.
### Example ### Example
https://server/RegisterTeam?teamId=8b1292ca&teamName=Lexical+Pedants https://server/api/v3/RegisterTeam?teamId=8b1292ca&teamName=Lexical+Pedants
{ {
"status": "success", "status": "success",
@ -79,7 +79,7 @@ Return all currently-open puzzles.
### Example ### Example
https://server/GetPuzzleList https://server/api/v3/GetPuzzleList
{ {
"status": "success", "status": "success",
@ -113,7 +113,7 @@ Return a puzzle.
### Example ### Example
https://server/GetPuzzle?category=sequence&points=1 https://server/api/v3/GetPuzzle?category=sequence&points=1
{ {
"status": "success", "status": "success",
@ -142,7 +142,7 @@ Note: team number may change between calls.
### Example ### Example
https://server/GetEventsLog https://server/api/v3/GetEventsLog
{ {
"status": "success", "status": "success",
@ -180,7 +180,7 @@ Submit an answer to a puzzle.
### Example ### Example
https://server/SubmitAnswer?teamId=8b1292ca&category=sequence&points=1&answer=6 https://server/api/v3/SubmitAnswer?teamId=8b1292ca&category=sequence&points=1&answer=6
{ {
"status": "success", "status": "success",
@ -209,7 +209,7 @@ Submit a token for points
### Example ### Example
https://server/SubmitToken?teamId=8b1292ca&token=wat:30:xylep-radar-nanox https://server/api/v3/SubmitToken?teamId=8b1292ca&token=wat:30:xylep-radar-nanox
{ {
"status": "success", "status": "success",