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

Unable to Retrieve Path Variables in KrakenD Backend Plugin for Dynamic Endpoints #861

Open
JavedMohammadTechie opened this issue Mar 19, 2024 · 1 comment
Labels

Comments

@JavedMohammadTechie
Copy link

Hello KrakenD community,

I'm currently facing an issue with extracting path variables from dynamic endpoints in KrakenD when using a custom backend plugin. Specifically, I have an endpoint configured as follows:

image

I need to access these dynamic values (rollNo and section) within my backend plugin to perform certain operations based on the provided path variables. However, despite my attempts, I have been unable to retrieve these path variables in my backend plugin.

I've explored the available documentation and resources, but I couldn't find a clear solution for this scenario. Could someone please guide me on how to properly access the path variables from dynamic endpoints within a KrakenD backend plugin?

Any insights, code snippets, or pointers to relevant documentation would be greatly appreciated. Thank you in advance for your assistance!

@nsitbon
Copy link

nsitbon commented Mar 28, 2024

Hi @JavedMohammadTechie as far as I know you don't have access to those variables inside server plugins... the only place where you have access to them is inside a request modifier https://github.com/luraproject/lura/blob/master/proxy/plugin.go#L201
Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants