feat: API versioning, rate limit keying + tiering, site.rs docs - #1425
Merged
mftee merged 1 commit intoSep 28, 2026
Conversation
- Document site.rs purpose and its responsibility split from routes.rs - Add /v1-style version prefix to API routes - Extend rate limiting beyond pure IP-based keying - Add distinct rate limit tiers for submit vs verify endpoints Closes CodeGirlsInc#1360 Closes CodeGirlsInc#1359 Closes CodeGirlsInc#1355 Closes CodeGirlsInc#1356
Contributor
|
@ggrunlab-pixel is attempting to deploy a commit to the Mftee's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@ggrunlab-pixel 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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR documents
site.rs, introduces API route versioning, and hardens rate limiting with better keying and endpoint-specific tiers.Changes
Document site.rs purpose — #1360
site.rsexplaining its responsibility and how it differs fromroutes.rs, for new-contributor clarityAPI route versioning — #1359
/v1-style version prefix to endpoints exposed inroutes.rs/v1Rate limiting beyond IP-based keying — #1355
rate_limit.rsso limits are no longer keyed purely by source IPDistinct rate limit tiers for submit vs verify — #1356
submitendpoint vs the cheaperverifyendpoint inrate_limit.rsSummary
This PR documents
site.rs, introduces API route versioning, and hardens rate limiting with better keying and endpoint-specific tiers.Changes
Document site.rs purpose — #1360
site.rsexplaining its responsibility and how it differs fromroutes.rs, for new-contributor clarityAPI route versioning — #1359
/v1-style version prefix to endpoints exposed inroutes.rs/v1Rate limiting beyond IP-based keying — #1355
rate_limit.rsso limits are no longer keyed purely by source IPDistinct rate limit tiers for submit vs verify — #1356
submitendpoint vs the cheaperverifyendpoint inrate_limit.rsSummary
This PR documents
site.rs, introduces API route versioning, and hardens rate limiting with better keying and endpoint-specific tiers.Changes
Document site.rs purpose — #1360
site.rsexplaining its responsibility and how it differs fromroutes.rs, for new-contributor clarityAPI route versioning — #1359
/v1-style version prefix to endpoints exposed inroutes.rs/v1Rate limiting beyond IP-based keying — #1355
rate_limit.rsso limits are no longer keyed purely by source IPCloses
Closes #1346
Closes #1345
Closes #1351
Closes #1352
Distinct rate limit tiers for submit vs verify — #1356
submitendpoint vs the cheaperverifyendpoint inrate_limit.rsTesting
/v1prefix; checked for any hardcoded old paths in tests/clientssubmitandverifyare limited independently and at their intended thresholdssite.rsdoc comments render correctly and accurately describe its scope vsroutes.rsCloses
Closes #1347
Closes #1348
Closes #1358
Closes #1357
Testing
/v1prefix; checked for any hardcoded old paths in tests/clientssubmitandverifyare limited independently and at their intended thresholdssite.rsdoc comments render correctly and accurately describe its scope vsroutes.rsCloses
Closes #1350
Closes #1349
Closes #1353
Closes #1354
Testing
/v1prefix; checked for any hardcoded old paths in tests/clientssubmitandverifyare limited independently and at their intended thresholdssite.rsdoc comments render correctly and accurately describe its scope vsroutes.rsCloses
Closes #1360
Closes #1359
Closes #1355
Closes #1356