Skip to content
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

Fix Default API Context Generation Issue #12709

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

dakshina99
Copy link
Contributor

Description

This PR resolves an issue with generating the default version context for APIs. Previously, the implementation unintentionally removed multiple occurrences of /version-like segments from the API context, even when these segments were not part of the version.

Fix

The fix utilizes the CONTEXT_TEMPLATE stored in the database to generate the default version context. Specifically, all occurrences of /{version} and {version} are removed from the CONTEXT_TEMPLATE, and the resulting string is used as the context for the default version.

@AnuGayan AnuGayan merged commit d485165 into wso2:master Nov 25, 2024
7 checks passed
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.

Status 404 with default APIs In APIM-4.0.0
2 participants