-
Notifications
You must be signed in to change notification settings - Fork 422
Feature request: Better strip-prefixes for APIGatewayRestResolver #2494
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
Comments
Hi @royassis! Thanks for opening this issue and bringing up your use case. Do you have bandwidth to send a PR to add regex support for this field? |
Looking at this now |
|
Use case
I have multiple API Gateway Rest apis backed by AWS Lambda.
I want to these APIs to the same Custom domain name with different paths.
For example I have APIs with these urls, each backed by a different lambda:
I want both of them to be available from:
respectively.
When Init-ing the APIGatewayRestResolver class I would have to pass in the strip_prefixes.
We could potentials go to a high level of options due to combinatorics.
Solution/User Experience
So if out initial path is
/api/v1/xxx
it will strip "api" first:/api/v1/xxx
->/v1/xxx
Then v1
/v1/xxx
->/xxx
Then it will try to strip "test" but nothing would change:
/xxx
- >/xxx
Then it will strip "xxx"
/xxx
- >/
Alternative solutions
No response
Acknowledgment
The text was updated successfully, but these errors were encountered: