Implement Personal User Statistics API endpoint #81

Closed
opened 2025-12-29 14:53:27 +00:00 by KZix · 0 comments
Owner

GET /api/users/me/statistics

Acceptance Criteria:

  • The endpoint returns 401 Unauthorized if no token is provided.
  • It only returns data for the user associated with the token.
  • Response format example: { "total_games": 50, "wins": 25, "losses": 25, "win_rate": "50.0%" }.
**GET /api/users/me/statistics** ## Acceptance Criteria: - [x] The endpoint returns 401 Unauthorized if no token is provided. - [x] It only returns data for the user associated with the token. - [x] Response format example: { "total_games": 50, "wins": 25, "losses": 25, "win_rate": "50.0%" }.
KZix added this to the Bisca - API project 2025-12-29 14:53:27 +00:00
KZix added the apistats labels 2025-12-29 14:53:46 +00:00
KZix self-assigned this 2025-12-29 14:53:50 +00:00
KZix moved this to To Do in Bisca - API on 2025-12-29 14:53:57 +00:00
KZix added the feature label 2025-12-29 14:55:18 +00:00
KZix moved this to In Progress in Bisca - API on 2025-12-29 15:31:45 +00:00
KZix added reference feature/api-stats 2025-12-29 15:33:11 +00:00
KZix moved this to Done in Bisca - API on 2025-12-30 11:41:41 +00:00
KZix closed this issue 2025-12-30 11:41:58 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SyntaxSquad/DADProject#81