Get the whole board
Retrieves the current state of the board and the winner.
Response
200 application/json
Response
OK
status
Winner of the game. . means nobody has won yet.
Allowed values:.XO
Example:.
>= 3 items<= 3 items
Get a single board square
Retrieves the requested square.
Path Parameters
Board row (vertical coordinate)
>= 1<= 3
Example:1
Board column (horizontal coordinate)
>= 1<= 3
Example:1
Response
application/json
Response
OK
mark
Possible values for a board square. . means empty square.
Allowed values:.XO
Set a single board square
Places a mark on the board and retrieves the whole board and the winner (if any).
Path Parameters
Board row (vertical coordinate)
>= 1<= 3
Example:1
Board column (horizontal coordinate)
>= 1<= 3
Example:1
Body
application/json
Body
mark
Possible values for a board square. . means empty square.
Allowed values:.XO
Response
application/json
Response
OK
status
Winner of the game. . means nobody has won yet.
Allowed values:.XO
Example:.
>= 3 items<= 3 items
errorMessage
stringA text message describing an error
<= 256 characters
coordinate
integer>= 1<= 3
Example:1