Add suffix to proxy before sending to target | APIGEE Edge

Hi All,

I would like to add a suffix like `/books` to my proxy endpoint , before sending to Target endpoint?

Current config

proxyEndpoint: https://api.freebie.com/give

targetEndpoint: https://getmygoodie.com/

Basepath: /give

I only want to add `/give` to while calling the proxyEndpoint.

`https://api.freebie.com/` should get converted to `https://api.freebie.com/give` , before hitting the proxy Endpoint.

I understand this is a different use case. It would be great if i can get some advise on the same.

0 1 159
1 REPLY 1

Not applicable

Let me understand the requirement.

you want "https://api.freebie.com/give" as request url and the "https://getmygoodie.com/" will be going to the response.

when you have /give as base path automatically this works as you want. to add a suffix that will automatically get appended

If you want suffix will not get appended then you can set target.copy.pathsuffix to false in target endpoint preflow.