Hi All,
I have a question regarding the change of path in apigee. For example, I am trying to access a page with /v1/objects/list as a path. But when using my apigee api proxy, I want to access it with a different path which is /v1/docs/list using a service callout. I set the target endpoint to the base URL and not included the path. I created a proxy endpoint with a condition for /v1/docs/list. But when I try to use trace, the service callout policy doesn't appear and it seems that it doesn't enter the flow.
Please see attached screenshot for reference. Your replies will be really appreciated.
@Junnes Ashley Pineda , You will use service callout if you would like to call any other target server before or after API request goes through the target endpoint. We need below information to better understand same.
Based on my understanding,
When you make proxy call like https://proxy.com/v1/docs/list, it will hit , https://target.com/v1/objects/list
Hope it helps.
@Junnes Ashley Pineda, As per my understanding, pls find my updates below.
<Condition>(proxy.pathsuffix MatchesPath "/v1/REP/documents") and (request.verb = "GET")</Condition>