Sign up

post

Create a new user account.

Authentication

post

Create an access token that allows user to authenticate.

get

Retrieve details about the token used for authentication.

post

Revoke the given token.

User

get

Retrieve account details for currently authenticated user.

patch

Update account details for currently authenticated user.

Tournaments

get

Retrieve tournaments. Authentication is optional - when authenticated, retrieve only tournaments created by authenticated user. Tournaments are sorted by 'starts_at' (ascending).

post

Create a new tournament.

get

Retrieve tournaments that currently authenticated user has enlisted in. Tournaments are sorted by 'starts_at' (ascending).

get

Retrieve a tournament with relations.

patch

Update tournament details. User can update only tournaments he created.

delete

Remove a tournament. User can remove only tournaments he created.

post

Mark tournament as 'in progress'. User can start only tournaments he created and their 'starts_at' date is in the past.

post

Mark tournament as 'ended'. User can start only tournaments he created and were previously started.

Results

get

Retrieve total results for each competitor in a tournament, sorted from highest to lowest.

Competitor

post

Enlist in a tournament. User can enlist only in tournaments that didn't start.

delete

Resign from a tournament. User can resign only from tournaments that didn't start.

post

Create a competitor for user without an account. User can create competitors only in tournaments he created.

Competitors

delete

Remove competitor from a tournament. User can remove only competitors he created.

post

Confirm user participation in a tournament. User can confirm competitors only in tournaments he created.

post

Reject user participation in a tournament. User can reject competitors only in tournaments he created.

Rounds

post

Create a new tournament round. User can create rounds only in tournaments he created and didn't end.

patch

Update tournament round. User can update rounds only in tournaments he created and didn't end.

delete

Remove tournament round. User can remove rounds only in tournaments he created and didn't end.

Players

post

Assign players to tables in a tournament round. For the first round assignment is random. If consecutive rounds have the same competitors limit and tables count, algorithm tries to pair up competitors who haven't met yet. Otherwise it's based on score. User can assign players only in tournaments he created.

patch

Update player with the round results.