Chess Game API Example

POST /players
Player

Create a player

Returns
201 application/json Player

Player [object]

Attributes
id integer

name string

API:
Chess Game OpenAPI 3.0
(version: 1.0.1)
500 application/json ServerError

ServerError [object]

Attributes
status integer

detail string

API:
Chess Game OpenAPI 3.0
(version: 1.0.1)
Examples
Create player example
Creates a player with minimal input provided
POST /players
Content-type: application/json
Authorization: Bearer <YOUR TOKEN>
X-Custom-Header: custom-header-value

{ "format": "json", "data": { "name": "Bob" } },
API:
Chess Game OpenAPI 3.0
(version: 1.0.1)