Every fixture in Gestor Deportivo is a self-contained game record that accumulates goals, disciplinary events, and substitutions as the match progresses. Once all events are recorded, you finalize the game to push results into the tournament standings table. This guide walks through creating a match, recording all in-game events, and querying the resulting statistics.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/fredy-rizo/gestor-backend/llms.txt
Use this file to discover all available pages before exploring further.
Creating a match
Before you can record any match events, you need a game document tied to an event. Supply both teams, the venue details, and the officiating referee.| Field | Type | Description |
|---|---|---|
teams | array | Exactly two team IDs participating in the match |
matchDate | date string | Calendar date of the fixture |
matchTime | string | Kick-off time (e.g. "15:00") |
matchDay | number | Numeric match day within the competition |
scenery | string | Venue or pitch name |
workingday | string | Human-readable round label (e.g. "Jornada 3") |
refereeName | string | Name of the officiating referee |
gameId used in all subsequent recording endpoints.
To update any of these fields after creation:
Recording match events
Work through these steps in order during or after the match. Finalize the game last — that action freezes results and updates the standings table.Record goals
Post the goals scored by a specific team in this match. Each entry in the
Call this endpoint once per team. If neither team scored, you can skip this step.
goals array captures the minute, type, and the player who scored.typeGoals value | Description |
|---|---|
normal | Open-play goal |
Penal | Penalty kick conversion |
ownGoal | Own goal (credited to the opposing team) |
Record disciplinary cards
Submit yellow, red, and blue cards issued during the match. All card arrays are sent in a single request per team. Any array can be empty if no cards of that type were given.See Card types below for a description of each card’s meaning and effect.
Record fouls and substitutions
Log disciplinary foul counts and any player substitutions made during the match. Both are submitted together per team.
Finalize the match and update standings
Once all events are recorded, finalize the game. This calculates the result, awards points, and updates the tournament standings table.
Always call the finalize endpoint after recording all goals, cards, and disciplinary data. The standings calculation is based on the data present at the moment finalization runs. Re-running finalize after adding missed events will recalculate correctly, but it is best practice to ensure all data is complete first.
Card types
Yellow Card
Caution. A warning issued for unsporting behaviour or persistent foul play. Two yellow cards in a match result in an automatic ejection.
Red Card
Ejection. The player is immediately dismissed from the match and typically triggers a suspension for the next fixture.
Blue Card
Temporary suspension. Used in some indoor or futsal formats to send a player off for a set period rather than the full match.