Get a single board square

Retrieves the requested square.

get
/board/{row}/{column}

Path Parameters

rowintegerrequired

Board row (vertical coordinate)

>= 1<= 3

Example:1

columnintegerrequired

Board column (horizontal coordinate)

>= 1<= 3

Example:1

Response

application/json

OK

mark

markstring

Possible values for a board square. . means empty square.

Allowed values:.XO

application/json

Set a single board square

Places a mark on the board and retrieves the whole board and the winner (if any).

put
/board/{row}/{column}

Path Parameters

rowintegerrequired

Board row (vertical coordinate)

>= 1<= 3

Example:1

columnintegerrequired

Board column (horizontal coordinate)

>= 1<= 3

Example:1

Body

application/json

mark

markstring

Possible values for a board square. . means empty square.

Allowed values:.XO

Response

application/json

OK

status

winnerstring

Winner of the game. . means nobody has won yet.

Allowed values:.XO

Example:.

boardarray[array]

>= 3 items<= 3 items

application/json

errorMessage

string

A text message describing an error

<= 256 characters

coordinate

integer

>= 1<= 3

Example:1

mark

string

Possible values for a board square. . means empty square.

Allowed values:.XO

Example