docs(ai-rate-limiting): re-port with Admin API, ADC, and Ingress Controller tabs#13209
docs(ai-rate-limiting): re-port with Admin API, ADC, and Ingress Controller tabs#13209Yilialinn wants to merge 6 commits intoapache:masterfrom
Conversation
…xamples limit_strategy is a top-level attribute, not a per-instance attribute. Fixed in all 4 config variants (Admin API, ADC, Gateway API, Ingress Controller) for the 'Rate Limit One Instance Among Multiple' example.
There was a problem hiding this comment.
Pull request overview
This PR re-ports the ai-rate-limiting plugin documentation from API7 Docs, adding multi-tab configuration instructions (Admin API, ADC, Ingress Controller with nested Gateway API / APISIX Ingress Controller) and expanding examples, for both English and Chinese docs.
Changes:
- Added MDX tabbed configuration blocks (Admin API / ADC / Ingress Controller, with nested Kubernetes API tabs) across multiple examples.
- Updated/expanded Attributes tables (including
expressionlimit_strategyandcost_expr) and added a new “rate limit by rules” example section. - Updated both
docs/enanddocs/zhversions to keep content aligned.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| docs/zh/latest/plugins/ai-rate-limiting.md | Re-ported/expanded Chinese docs with MDX tabs and additional scenarios/examples. |
| docs/en/latest/plugins/ai-rate-limiting.md | Re-ported/expanded English docs with MDX tabs and additional scenarios/examples. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| curl "http://127.0.0.1:9180/apisix/admin/routes/1" -X PUT \ | ||
| -H "X-API-KEY: ${admin_key}" \ | ||
| -d '{ | ||
| "id": "ai-rate-limiting-route", |
There was a problem hiding this comment.
Please keep the style of resource creation consistent across plugin docs. Other plugin docs are adopting the style where the ID of the resource is placed in the PUT body, with a meaningful ID. It seems that this writing style is being reverted in this doc.
Summary
ai-rate-limitingplugin documentation from API7 docs with all three configuration tabs (Admin API, ADC, Ingress Controller)