fix(api): return 200 OK on empty collection and ignore Id in AutoMapper (#425)#441
Conversation
…er (#425) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review WalkthroughThe PR resolves two REST compliance gaps: Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Assessment against linked issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 1 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|



Summary
GET /playersnow returns200 OK []when no players exist instead of404 Not FoundPlayer → PlayerResponseModelprofile explicitly ignores theIdsource member viaForSourceMember, making the exclusion intentional and future-proofGet_Players_NonExisting_Returns404NotFound→Get_Players_Empty_Returns200OkWithEmptyListTest plan
GET /playersreturns200 OKwith[]when collection is emptyGET /playersreturns200 OKwith player list when players existdotnet build --configuration ReleasesucceedsCloses #425
🤖 Generated with Claude Code
Summary by CodeRabbit
/playersendpoint now returns HTTP 200 OK with an empty list when no players exist, instead of HTTP 404 Not Found.