docs: update attach-consumer-label plugin documentation#13301
Open
Yilialinn wants to merge 7 commits intoapache:masterfrom
Open
docs: update attach-consumer-label plugin documentation#13301Yilialinn wants to merge 7 commits intoapache:masterfrom
Yilialinn wants to merge 7 commits intoapache:masterfrom
Conversation
- Restructure content following ported plugin conventions (EN+ZH) - Fix typo: X-Credential-Indentifier -> X-Credential-Identifier - Replace ADMIN_API_KEY with admin_key in all curl commands - Add canonical link to API7 docs - Remove Delete Plugin section - Add subsection heading for example - Capitalize Route, Plugin, Consumer, Credential in prose - Clarify behavior for unconfigured labels in verification result
There was a problem hiding this comment.
Pull request overview
Updates the attach-consumer-label plugin documentation (English + Chinese) to align with current plugin doc structure and improve clarity/consistency for the Admin API examples and response interpretation.
Changes:
- Restructures sections (Description/Attributes/Examples) and clarifies the example output (missing
X-Consumer-Roledue to absentrolelabel). - Fixes header typo (
X-Credential-Indentifier→X-Credential-Identifier) and standardizes curl examples to useadmin_key. - Adds a canonical link pointing to API7 Hub docs.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| docs/en/latest/plugins/attach-consumer-label.md | Restructures EN doc, fixes header typo, updates Admin API key usage, adds canonical link, clarifies example output. |
| docs/zh/latest/plugins/attach-consumer-label.md | Mirrors EN doc restructuring/clarifications in ZH, updates keywords/wording, fixes header typo, updates Admin API key usage, adds canonical link. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
kayx23
reviewed
Apr 27, 2026
…er-label - Wrap canonical link in <head>...</head> for attach-consumer-label and response-rewrite (EN and ZH) - Fix 'business logics' -> 'business logic' and 'additional logics' -> 'additional logic' in attach-consumer-label EN
kayx23
approved these changes
Apr 30, 2026
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
X-Credential-Indentifier→X-Credential-IdentifierADMIN_API_KEYwithadmin_keyin all curl commandsX-Consumer-Roleis absent because therolelabel is not configured on the Consumer