Skip to content

Add api/v1/stats/user/:username/rounds endpoints#1579

Open
bpfoley wants to merge 1 commit into
DistributedProofreaders:masterfrom
bpfoley:user-stats-api
Open

Add api/v1/stats/user/:username/rounds endpoints#1579
bpfoley wants to merge 1 commit into
DistributedProofreaders:masterfrom
bpfoley:user-stats-api

Conversation

@bpfoley
Copy link
Copy Markdown
Collaborator

@bpfoley bpfoley commented May 10, 2026

Code borrowed from theme.inc show_tally_specific_stats


Test hint edit from @cpeel courtesy of @bpfoley:

API_KEY=<api key here>
ROOT=https://www.pgdp.org/~bfoley/c.branch/user-stats-api
curl -X GET "$ROOT/api/v1/stats/user/bfoley/rounds" \
   -H "Accept: application/json" \
   -H "X-API-KEY: $API_KEY"

curl -X GET "$ROOT/api/v1/stats/user/bfoley/rounds/P1" \
    -H "Accept: application/json" \
    -H "X-API-KEY: $API_KEY"

Comment thread api/v1_stats.inc Outdated
@cpeel cpeel requested review from chrismiceli and srjfoo May 10, 2026 19:53
Code borrowed from theme.inc show_tally_specific_stats
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.

2 participants