-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Protecting and Rate Limiting Rust Actix Web API Template #2293
Conversation
|
@djnovin is attempting to deploy a commit to the Unkey Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
📝 WalkthroughWalkthroughThe pull request updates the documentation for creating templates using Unkey across various frameworks or languages to build APIs. It introduces a new side quest entry that encourages participants to document their setup experiences and provide feedback, with a points system for contributions. Additionally, it specifies submission requirements, including open-source licensing and a README.md file, while expanding the list of existing submissions to include a new project by Novin Noori related to Rust and Actix Web. Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🔇 Additional comments (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Thank you for following the naming conventions for pull request titles! 🙏 |
Awarding djnovin: 750 points 🕹️ Well done! Check out your new contribution on oss.gg/djnovin |
What does this PR do?
In this pull request, I've integrated
Unkey
to provide route protection and rate limiting for the application for hackathon. This is a side quest to make a template using a framework.Unkey
. Only requests with valid API keys in the Authorization header (Bearer token) are allowed to access protected routes.Unkey
rate limits API. Each request is checked against the defined rate limit.Fixes #2292
If there is not an issue for this, please create one first. This is used to tracking purposes and also helps use understand why this PR exists
Type of change
How should this be tested?
curl http://localhost:3000/api/v1/protected -H "Authorization: Bearer <YOUR_API_KEY>"
Checklist
Required
pnpm build
pnpm fmt
console.logs
git pull origin main
Appreciated