Rewrite URL request resource to different target resource

danielhoenig
Participant III

I'd like to map a given resource on the request url to a different resource on the target server. Do I need to use a javascript callout to do that (following this guidance- https://docs.apigee.com/api-platform/fundamentals/understanding-handling-request-response-data) or can I use the <Request> section of the Flow?

Example

https://apigeeDomain.com/Make

to

https://targetDomain.com/Manufacturer

Solved Solved
0 4 1,928
1 ACCEPTED SOLUTION

Hi @Daniel Hoenig,

You can use both, however I would recommend to use Flow.

View solution in original post

4 REPLIES 4

Hi @Daniel Hoenig,

You can use both, however I would recommend to use Flow.

I looked at Flows because that seemed to be the place to do it, but I can't find any example on how to tell it to map a request resource to a target endpoint resource. Do you have an example you should show me? Maybe I'm missing something.

I did it by writing a javascript policy, since the url needed to be more dynamic. Thanks!