Skip to content

feat: add GET /api/stats with strong ETag + 304 support#530

Merged
greatest0fallt1me merged 1 commit into
Predictify-org:mainfrom
olamidemutiat300-debug:feat/stats-etag-support
Jul 26, 2026
Merged

feat: add GET /api/stats with strong ETag + 304 support#530
greatest0fallt1me merged 1 commit into
Predictify-org:mainfrom
olamidemutiat300-debug:feat/stats-etag-support

Conversation

@olamidemutiat300-debug

Copy link
Copy Markdown
Contributor
  • New statsService: parallel COUNT(*) queries for users, markets, predictions, claims
  • New /api/stats route with conditionalGet() middleware for ETag/304
  • Anonymous rate limiting via rateLimitAnon
  • OpenAPI spec for /api/stats with ETag caching documentation
  • 14 test cases: 200/304/ETag stability/error propagation

Closes #480

- New statsService: parallel COUNT(*) queries for users, markets, predictions, claims
- New /api/stats route with conditionalGet() middleware for ETag/304
- Anonymous rate limiting via rateLimitAnon
- OpenAPI spec for /api/stats with ETag caching documentation
- 14 test cases: 200/304/ETag stability/error propagation

Closes Predictify-org#480
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@olamidemutiat300-debug Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@greatest0fallt1me

Copy link
Copy Markdown
Contributor

Merged via direct push to main (admin)

@greatest0fallt1me
greatest0fallt1me merged commit 3578b4e into Predictify-org:main Jul 26, 2026
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.

Add ETag / 304 caching on /api/stats

2 participants