Add GET /admin/players/{id} detail endpoint #249
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/basketball-api#249
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Decomposed from
forgejo_admin/westside-landing#185. Backend blocker — no detail endpoint exists for the CRM player detail view.Repo
forgejo_admin/basketball-apiUser Story
As Marcus (admin)
I want a player detail API endpoint
So that the CRM can show all info for a single player on a detail page
Context
The admin CRM has a player list (
GET /admin/players) but no single-player detail endpoint. A non-adminplayers/{id}route exists in the frontend for profile editing, but the API doesn't expose a comprehensive admin view. The detail endpoint should return everything: personal info, parent info, team, registration, payment, contract, and jersey data.File Targets
Files the agent should modify:
src/basketball_api/routes/admin.py— addGET /admin/players/{player_id}endpoint with a comprehensive response modelFiles the agent should NOT touch:
src/basketball_api/routes/jersey.py— jersey orderingsrc/basketball_api/models.py— no model changes neededGET /admin/playerslist endpoint — leave as-isAcceptance Criteria
GET /admin/players/{player_id}returns comprehensive player dataTest Expectations
pytest tests/test_admin.py -vConstraints
Checklist
Related
project-westside-basketballforgejo_admin/westside-landing#185— CRM frontend detail page (depends on this)Scope Review: NEEDS_REFINEMENT
Review note:
review-676-2026-03-29Issue template is fully complete and file targets verified — the scope is solid. Two traceability gaps need fixing before execution:
story:WS-S5is a mismatch. WS-S5 = CNPG backups (superadmin) / dashboard stats (admin). This work maps tostory:WS-S12("manage user accounts, view profiles"). Update the board item label.arch-basketball-apinote exists in pal-e-docs. Create the architecture note to complete the traceability triangle.Scope Review: READY
Review note:
review-676-2026-03-29Scope is solid — template complete, story:WS-S12 verified on project page, file target confirmed, all Player model fields exist. Arch note gap (arch-basketball-api) is a known platform-wide item, not a blocker for this ticket. Single file, single repo, under 5 minutes. Ready for dispatch.