-
Notifications
You must be signed in to change notification settings - Fork 234
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
how to pass new parameters to initial request #256
Comments
req.params contains route parameters (in the path portion of the URL), and req.query contains the URL query parameters (after the ? in the URL).
Are you saying you'd like to pass route parameters to the proxy request? I'm confused about the request. If you are instead asking about query parameters you'd use a HTH. |
@monkpow I'm having a related (I think) issue... I'm trying to use the i.e. I'm sending this payload via postman: I'm then using this body decorator:
And here's the usage of the proxy:
But then when I dump the request within the API that I'm proxying to, it only gets the original request body and not the compiled one from the decorator... It's not clear to me what's wrong here - any thoughts? |
Won't work, the What's the ideal way to solve this? |
@valecarlos did you find any solution ? |
@magic-mohit @valecarlos Unless I'm misunderstanding you, Let me know if you have any questions. I'm going to close this ticket; feel free to re-open if you want to continue the discussion. |
How to do this as in decorateProxyReqOpts I have the following code which seems to remove all params:
return Promise
.resolve(resolverFn(container.proxy.reqBuilder, container.user.req))
.then(function(processedReqOpts) {
delete processedReqOpts.params;
container.proxy.reqBuilder = processedReqOpts;
return Promise.resolve(container);
});
I haven't even seen this documented
The text was updated successfully, but these errors were encountered: