Hi there,
How can read request path parameters from APIGEE proxy context.proxyRequest ?
var request = context.proxyRequest;
I am able to read query params by request.queryParams. how can read path parameters ?
I need to read a path parameter from url, example : /test/test/{id}.
Is there a way like request.pathParams ? does it possible ? or We need to use substring operation to read the path parameters from URL ?
Thanks.
Answer by Ravindra Singh · Aug 06, 2019 at 02:26 AM
Hi @GopiMolabanti ,
you can use proxy.pathsuffix in the JS to get the request path.
Thanks @Ravindra Singh for helping.
is there any way we can get all path parameters as a list or Map ?
you can split the value of proxy.pathsuffix to get the list in array.
is It possible to create API Proxy having parameterize base URL 1 Answer
Is there a way to check for a particular value in a query parameter? 1 Answer
Why queryparams are duplicated? 1 Answer
Javascript URI change - what happened to the query parameters? 1 Answer
Prevent parameter encoding 0 Answers