Reputation: 7620
I have rest end point /admn_resource_manager.I have created a apigee proxy to expose this. I dont want to expose it like this to others as I want something like /adminmanager. Is there any way to map /adminmanager to /admn_resource_manager using Apigee.
end user would use http://someurl.apigee/adminmanager instead of http://someurl.apigee/admn_resource_manager
I explored KeyValueMapoperation and AssignMessage in Apigee. I am not sure if these are the right option to implement map path.I didn't get any example for this either.
Upvotes: 0
Views: 2279
Reputation: 1828
The way you would think to do this would be to use the Assign Message policy and use the Set -> Path element. But this policy isn't currently working as designed for rewriting the proxy's target URL. See the Assign Message Guidance for more details.
To rewrite the incoming URL to a different target URL you can use the Assign Message Policy to set the entire URL (target.url) in the Target Endpoint flow, or you can use a JavaScript callout to set it. I chose to use a JavaScript callout because it gives a lot more control when rewriting the URL.
Here is an example project on Github I put together for this you can use to see how I did it. It uses the swapi.co api as the target endpoint. This proxy uses the Assign Message and JavaScript callout policies to rewrite the URL. Here's some details about it...
Proxy Endpoints
Assign Message Policies
JavaScript Policy
Upvotes: 1
Reputation: 223
I think Apigee can do it.
When I was started Apigee I have learned and try to understand from the picture below. (I think it is describe the main concept of this platform)
From your scenario,
Because I'm not an expert as well so, you this link below can explain you more information.
Link:Using Flow Variables
Upvotes: 0