is there a way in apigee to handle multiple endpoint efficiently rather hard coding for each resource call with assign message policy at target end point?
Answer by jonesfloyd · Feb 04, 2015 at 09:25 PM
Hi Kuldeep - If you're wanting to set up dynamic routing to different endpoints, check out this topic: http://apigee.com/docs/api-services/reference/api-proxy-configuration-reference
Answer by divyaachan · Feb 04, 2015 at 08:55 PM
Could you please elaborate your question a little bit more. Are you asking how to define a single api proxy with different proxy endpoint or a single proxy routing to different targets endpoints based on some condition?
Divya,
Thanks for the response, I in fact meant first - "how to define a single api proxy with different proxy endpoint", but do not see any harm in knowing second one as well :P
Kuldeep,
In order to define a single apiproxy, you need to first create an apiproxy with some basepath.
Once the apiproxy is created, you then need to add a 'New Endpoint' under the proxy endpoint section.
In the new Proxy endpoint you would need to define the Basepath of this new Proxy endpoint.
Attached is the screenshot.
Answer by Kuldeep Bhati
·
Jul 22, 2015 at 09:25 AM
thanks a lot @Divya Achan @David Allen @Floyd Jones
Hi I have similar type of question just like above. I am new to apigee, I want to place the API proxy on this platform for my API.
I wanted to take the parameter from the proxy url and change the Target endpoint path.
For Example.
http://proxy-server/{category}
to
http://target-server/categories/{category}/products.