🏆Tournaments API
Game implementation of the tournaments tool.
Client Side: Get Tournaments
Get Tournaments
Query Parameters
Name
Type
Description
Headers
Name
Type
Description
{
"code": 1,
"success": true,
"data": [{
"_id": // Unique identifier of the event (ID),
"name": // Name of the event (STRING),
"gameId": // ID,
"description": // text,
"createdAt": // Date of creation of the tournament (2022-12-13T12:45:17.281Z) "modifiedAt": Date of latest modification(ISO),
"startsAt": // Starting date of the event(ISO),
"endsAt": // Ending Date of the event(ISO),
"repeatEvery": null,
"location": // URL where the tournament is happening (String),
"eventUrl": // URL to redirect to the event (String),
"userId": // Creator of the event (ID),
"imageUrl": // URL with the image of the event (String),
"prizePool": // Amount of USD in the prize pool (Number),
"type": // Indicator if it is a "tournament" or just an "event",
"visibility": // Indicator if the tournament is visible for the public (public/private), "rules": URL to the rules of the tournament (String),
"prizeDescription": // Short description of the price (String),
"settingsId": // Setting selected for the tournament (ID),
"leaderboard": // Object containing the current leaderboard
} ]
}Server Side: Submit Score
Submit Score
Headers
Name
Type
Description
Request Body
Name
Type
Description
Additional Tournament Info
Tournament Leaderboard
Get Leaderboard
Path Parameters
Name
Type
Description
Headers
Name
Type
Description
Request Body
Name
Type
Description
Tournament Scores
Get Scores
Headers
Name
Type
Description
Request Body
Name
Type
Description
Last updated