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

Add Fixed Prefix for Stub Base URL to Standardize Requests #1434

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

samyakOO7
Copy link
Collaborator

@samyakOO7 samyakOO7 commented Nov 19, 2024

-> Introduced a UrlPrefixInterceptor class to dynamically decode and update request paths based on a fixed path prefix.
-> Utilised System.getProperty(PATH_PREFIX) to fetch the prefix path for flexibility through environment configuration.
-> Moved helper method to normalise and decode path segments (urlDecodePathSegments) to UrlDecodeInterceptor.
-> Ensures all incoming requests are consistently mapped relative to the defined path prefix and url.
-> Added test cases for UrlPrefixInterceptor and UrlDecodeInterceptor and fixed existing test cases

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.

1 participant