Create POST /api/matches/{match}/join #66

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

Descrição: Endpoint para o Player 2 entrar no Match. AC:

Validar se o Match está com status Pending.

Validar se o user que está a tentar entrar não tem outros jogos ativos.

Se for o Player 1 a tentar entrar, retornar sucesso (Reconnect).

Se for um novo jogador, atualizar player2_user_id com o ID dele.

Alterar status para Playing.

Descrição: Endpoint para o Player 2 entrar no Match. AC: Validar se o Match está com status Pending. Validar se o user que está a tentar entrar não tem outros jogos ativos. Se for o Player 1 a tentar entrar, retornar sucesso (Reconnect). Se for um novo jogador, atualizar player2_user_id com o ID dele. Alterar status para Playing.
KZix added the apigameplay labels 2025-12-14 02:32:23 +00:00
KZix self-assigned this 2025-12-14 02:32:23 +00:00
KZix added this to the Bisca - API project 2025-12-14 02:32:23 +00:00
KZix moved this to In Progress in Bisca - API on 2025-12-14 02:33:16 +00:00
KZix added reference feature/matches-api-endpoints 2025-12-14 02:33:29 +00:00
KZix moved this to Done in Bisca - API on 2025-12-18 20:41:44 +00:00
KZix closed this issue 2025-12-18 21:04:47 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SyntaxSquad/DADProject#66