Skip to content

Fix documentation updates#11393

Open
PabasaraIlankoon wants to merge 1 commit into
wso2:masterfrom
PabasaraIlankoon:master
Open

Fix documentation updates#11393
PabasaraIlankoon wants to merge 1 commit into
wso2:masterfrom
PabasaraIlankoon:master

Conversation

@PabasaraIlankoon
Copy link
Copy Markdown

Purpose

Fix documentation issues across API Gateway and Dev Portal guides to improve clarity and consistency.

Goals

Correct and improve API Gateway configuration docs
Update Dev Portal API publishing instructions
Ensure consistency across related documentation files

Approach

Updated multiple Markdown files under API Gateway and Dev Portal sections by refining explanations for message tracing, mutual SSL, response caching, scaling and API publishing steps.

User stories

  • Developers need accurate API Gateway setup guidance
  • API publishers need clear and correct Dev Portal publishing steps

Release note

Improved API Gateway and Dev Portal documentation for better clarity and correctness.

Documentation

N/A

Training

N/A

Certification

N/A

Marketing

N/A

Automation tests

N/A (documentation-only change)

Security checks

Samples

N/A

Related PRs

None

Migrations (if applicable)

N/A

Test environment

  • MkDocs build verified locally
  • Windows 10, Chrome

Learning

Reviewed and aligned API Manager documentation structure and corrected inconsistencies.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 20, 2026

Review Change Stack

📝 Walkthrough

Documentation Updates for API Gateway and Dev Portal Guides

This PR fixes documentation inconsistencies and improves clarity across API Manager guides:

API Gateway Configuration Guides

  • Message Tracing: Corrected admonition directive formatting (lowercase info label)
  • Mutual SSL Configuration: Fixed typo referencing "SSL debug logs" instead of "SSI debug logs"
  • Response Caching: Updated references to use current EI 6.5.0 documentation and clarified cache invalidation approach using APIM monitoring tools and MBeans instead of JConsole-specific instructions
  • Gateway Scaling: Added GitHub issue notice about outdated 4.x content, introduced new consideration for custom throttling policies, and corrected spelling ("criterias" → "criteria")

Dev Portal Publishing Guides

  • Publish an API: Updated internal documentation link to use site-relative path ({{base_path}}) instead of hardcoded URL
  • Publish AWS APIs: Removed extraneous trailing parenthesis in AWS CLI reference URL

All changes improve documentation accuracy and consistency with minimal impact. No code alterations, security concerns, or breaking changes.

Walkthrough

This pull request contains documentation updates across six API Manager guide files. The changes include fixing admonition directive capitalization, correcting an SSI-to-SSL typo in debug logging instructions, updating deprecated cache mediator links to current EI 6.5.0 documentation, converting hardcoded URLs to site-relative references, generalizing cache invalidation monitoring guidance to include the MI monitoring dashboard, removing a trailing parenthesis from an AWS CLI URL, and adding an outdated content warning for gateway scaling documentation with updated throttling policy guidance and spelling corrections.

Suggested reviewers

  • chamilaadhi
  • tharikaGitHub
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the primary purpose of the changeset—fixing documentation across multiple API Gateway and Dev Portal files.
Description check ✅ Passed The description follows the template structure and includes all major sections with relevant content appropriate for a documentation-only change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@en/docs/api-design-manage/deploy-and-publish/deploy-on-gateway/api-gateway/response-caching.md`:
- Line 82: Remove the draft placeholder and fix grammar: replace the sentence
with a clear statement such as "You can invalidate all cached responses remotely
by using the exposed MBeans at
{{base_path}}/observe/mi-observe/mi-monitoring-dashboard or by invoking the
InvalidateMediatorCache() operation of the org.wso2.carbon.mediation MBean."
Ensure "cached response" is pluralized to "cached responses" and the editing
instruction "Update to APIM-relevant monitoring docs or use" is removed;
reference the MBean operation InvalidateMediatorCache() and the dashboard path
to locate the content to edit.
- Line 3: Remove the draft instruction phrase "Update to current EI 6.5.0 docs
URL or note it as a legacy reference" from the sentence containing "The API
Manager uses Update to current EI 6.5.0 docs URL or note it as a legacy
reference to cache response messages for each API" and replace it with a clear
description of the caching component (e.g., "The API Manager uses the Response
Cache mediator to cache response messages for each API"), keeping the remainder
of the sentence about performance and the need to set an appropriate timeout
period to avoid stale data.

In
`@en/docs/api-design-manage/deploy-and-publish/deploy-on-gateway/api-gateway/scaling-the-gateway.md`:
- Line 5: Replace the inline text "Note: per GitHub issue `#8379`, this section is
outdated for 4.x and should be removed or updated" with either an
updated/removed section or a proper MkDocs admonition; if keeping temporarily,
wrap the specific scope in a warning admonition (e.g., use "!!! warning
\"Outdated Content for API Manager 4.x\"" and clearly state which lines or
subsection are outdated and link GitHub issue `#8379`), or fully update the
surrounding content to be accurate for 4.x or remove it entirely so the page no
longer contains ambiguous inline notes.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f34048b7-a97a-4ed7-b9d2-90eaad22a482

📥 Commits

Reviewing files that changed from the base of the PR and between 08582df and 890713f.

📒 Files selected for processing (6)
  • en/docs/api-design-manage/deploy-and-publish/deploy-on-gateway/api-gateway/message-tracing.md
  • en/docs/api-design-manage/deploy-and-publish/deploy-on-gateway/api-gateway/mutual-ssl-between-api-gateway-and-backend.md
  • en/docs/api-design-manage/deploy-and-publish/deploy-on-gateway/api-gateway/response-caching.md
  • en/docs/api-design-manage/deploy-and-publish/deploy-on-gateway/api-gateway/scaling-the-gateway.md
  • en/docs/api-design-manage/deploy-and-publish/publish-on-dev-portal/publish-an-api.md
  • en/docs/api-design-manage/deploy-and-publish/publish-on-dev-portal/publish-aws-apis-in-the-dev-portal.md

#Response caching

The API Manager uses [WSO2 ESB's cache mediator](https://docs.wso2.com/display/EI650/Cache+Mediator) to cache response messages for each API. Caching improves performance, because the backend server does not have to process the same data for a request multiple times. You need to set an appropriate timeout period to offset the risk of stale data in the cache.
The API Manager uses Update to current EI 6.5.0 docs URL or note it as a legacy reference to cache response messages for each API. Caching improves performance, because the backend server does not have to process the same data for a request multiple times. You need to set an appropriate timeout period to offset the risk of stale data in the cache.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Draft text accidentally left in the documentation.

Line 3 contains editing instructions that should have been removed: "Update to current EI 6.5.0 docs URL or note it as a legacy reference". This makes the sentence incomprehensible.

The text should describe what component is used for caching, not include instructions for updating the documentation.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@en/docs/api-design-manage/deploy-and-publish/deploy-on-gateway/api-gateway/response-caching.md`
at line 3, Remove the draft instruction phrase "Update to current EI 6.5.0 docs
URL or note it as a legacy reference" from the sentence containing "The API
Manager uses Update to current EI 6.5.0 docs URL or note it as a legacy
reference to cache response messages for each API" and replace it with a clear
description of the caching component (e.g., "The API Manager uses the Response
Cache mediator to cache response messages for each API"), keeping the remainder
of the sentence about performance and the need to set an appropriate timeout
period to avoid stale data.

## Invalidating Cached Responses Remotely

You can invalidate all cached response remotely by using any [JMX monitoring tool such as Jconsole](https://ei.docs.wso2.com/en/latest/micro-integrator/administer-and-observe/jmx_monitoring) using the exposed MBeans. You can use the `InvalidateMediatorCache()` operation of the `org.wso2.carbon.mediation` MBean for this as shown below.
You can invalidate all cached response remotely by using any Update to APIM-relevant monitoring docs or use {{base_path}}/observe/mi-observe/mi-monitoring-dashboard using the exposed MBeans. You can use the `InvalidateMediatorCache()` operation of the `org.wso2.carbon.mediation` MBean for this as shown below.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Draft text and grammar issue in documentation.

Line 82 contains draft editing instructions that should have been removed: "Update to APIM-relevant monitoring docs or use". Additionally, "cached response" should be "cached responses" (plural).

The sentence should clearly describe the tools or methods available for cache invalidation, not include editing placeholders.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@en/docs/api-design-manage/deploy-and-publish/deploy-on-gateway/api-gateway/response-caching.md`
at line 82, Remove the draft placeholder and fix grammar: replace the sentence
with a clear statement such as "You can invalidate all cached responses remotely
by using the exposed MBeans at
{{base_path}}/observe/mi-observe/mi-monitoring-dashboard or by invoking the
InvalidateMediatorCache() operation of the org.wso2.carbon.mediation MBean."
Ensure "cached response" is pluralized to "cached responses" and the editing
instruction "Update to APIM-relevant monitoring docs or use" is removed;
reference the MBean operation InvalidateMediatorCache() and the dashboard path
to locate the content to edit.

Scaling the Gateway requires considering the load that the Gateways will handle. We recommend that a load test be carried out on the Gateways in the environment. For more information on what factors affect the load, and how the numbers have to be derived in order to scale, refer to the article on [Capacity Planning](https://wso2.com/library/articles/2015/12/article-capacity-planning-exercise-with-wso2-middleware-platform/) . Make sure to check the backends as well for the expected load.

### Clustering Gateways and Key Managers with key caching
Note: per GitHub issue #8379, this section is outdated for 4.x and should be removed or updated
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | 🏗️ Heavy lift

Use proper admonition syntax and update outdated content instead of flagging it.

The inline note has several issues:

  • It does not use standard MkDocs admonition syntax (e.g., !!! warning or !!! note).
  • "this section" is ambiguous—it's unclear which specific content is outdated.
  • If content is confirmed outdated for 4.x versions, update or remove it rather than leaving it in place with an inline warning that confuses readers.
📝 Suggested approach

Either:

  1. Update the outdated content to be accurate for 4.x, or
  2. Remove the outdated content entirely, or
  3. If the content must remain temporarily, use a proper warning admonition with specific scope:
!!! warning "Outdated Content for API Manager 4.x"
    The following guidance on key validation performance (lines 7-13) is outdated for APIM 4.x. See [GitHub issue `#8379`](https://github.com/wso2/docs-apim/issues/8379) for updates.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@en/docs/api-design-manage/deploy-and-publish/deploy-on-gateway/api-gateway/scaling-the-gateway.md`
at line 5, Replace the inline text "Note: per GitHub issue `#8379`, this section
is outdated for 4.x and should be removed or updated" with either an
updated/removed section or a proper MkDocs admonition; if keeping temporarily,
wrap the specific scope in a warning admonition (e.g., use "!!! warning
\"Outdated Content for API Manager 4.x\"" and clearly state which lines or
subsection are outdated and link GitHub issue `#8379`), or fully update the
surrounding content to be accurate for 4.x or remove it entirely so the page no
longer contains ambiguous inline notes.

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.

2 participants