Create PUT /api/matches/{match} #67

Closed
opened 2025-12-14 02:32:59 +00:00 by KZix · 0 comments
Owner

Descrição: Endpoint para atualizar pontuações e terminar o Match. AC:

Permitir atualizar player1_marks, player2_marks, player1_points e player2_points.

Se o request enviar status: 'Ended':

Preencher ended_at com a data atual.

Atualizar winner_user_id e loser_user_id com os IDs reais dos jogadores.

Impedir atualização se o Match já estiver Ended.

Descrição: Endpoint para atualizar pontuações e terminar o Match. AC: Permitir atualizar player1_marks, player2_marks, player1_points e player2_points. Se o request enviar status: 'Ended': Preencher ended_at com a data atual. Atualizar winner_user_id e loser_user_id com os IDs reais dos jogadores. Impedir atualização se o Match já estiver Ended.
KZix added the apigameplay labels 2025-12-14 02:32:59 +00:00
KZix self-assigned this 2025-12-14 02:32:59 +00:00
KZix added this to the Bisca - API project 2025-12-14 02:32:59 +00:00
KZix moved this to In Progress in Bisca - API on 2025-12-14 02:33:18 +00:00
KZix added reference feature/matches-api-endpoints 2025-12-14 02:33:45 +00:00
KZix moved this to Done in Bisca - API on 2025-12-18 20:41:41 +00:00
KZix closed this issue 2025-12-18 21:04:31 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SyntaxSquad/DADProject#67