Skip to content

Implement create match between two members for a match cycle - #86

Draft
rootandroo wants to merge 1 commit into
api-match-reposfrom
api-match-create
Draft

Implement create match between two members for a match cycle#86
rootandroo wants to merge 1 commit into
api-match-reposfrom
api-match-create

Conversation

@rootandroo

@rootandroo rootandroo commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds POST /api/admin/matches — admin endpoint to create a match between two members for a match cycle.
  • Includes MatchService (defaults status to PENDING, derives YYYY-MM month label from the cycle's runAt), CreateMatchRequest/AdminMatchResponse DTOs, and MatchCycleNotFoundException mapped to 404.

Testing

  • MatchServiceTest (3 tests): success, status defaulting, cycle-not-found guard.
  • AdminMatchControllerTest (3 MockMvc tests): 200 envelope, validation 400, cycle-missing 404.
  • just backend-test (spotless + checkstyle) green on this branch.

Part of the per-endpoint match-domain stack; repo layer comes from #74.

Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant