feat: add GET /jersey/player-info endpoint for token-based division lookup #147
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
forgejo_admin/basketball-api#147
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
plan-wkq-> Phase 11 (Girls Tryout) -> discovered as dependency of westside-app #67Repo
forgejo_admin/basketball-apiUser Story
As a parent on the jersey checkout page,
I want the page to know my child's division automatically,
So that I can see which jersey numbers are already taken in that division.
Context
The jersey number picker on westside-app (forgejo_admin/westside-app#67) needs the player's division to call
GET /jersey/taken-numbers?division=.... Currently no endpoint returns player info given a registration token. The checkout endpoint uses the token internally but never exposes the division to the frontend.File Targets
Files the agent should modify:
src/basketball_api/routes/jersey.py-- addGET /jersey/player-info?token=...endpoint returning{ player_name, division }tests/test_jersey.py-- add tests for player-info endpointFiles the agent should NOT touch:
Acceptance Criteria
GET /jersey/player-info?token=...returns{ player_name, division }Test Expectations
pytest tests/test_jersey.py::TestJerseyPlayerInfo -vConstraints
Checklist
Related
project-westside-basketball