Forwarding data from 1 api to another api

I know to forward data from 1 api to another we use Service Callout Policy.

But is this policy converting the response from my api into request to the 2nd api?

Please explain

What is flow call out policy used?

0 1 285
1 REPLY 1

@HIMADRI BHATTACHARJEE, when you use service callout policy, you assign the response from that call to a variable. For eg: Response from 1st service callout definition

<Response>service1_calloutResponse</Response>

You can then make another API call and use the same variable as the request for the second service.

<RequestclearPayload="true"variable="service1_calloutResponse">

There is no conversion done here, you are just providing the variable reference in the service callout policy configuration. If you need to convert or modify the data, you will have to use assign Message or javascript policies to modify the service1_calloutResponse payload and use it in the service callout for service2

Flow callouts are completely different from service callouts. You can define shared flows in APigee with common policies that you can reuse across different API proxies. In order to reference a shared flow in an API proxy flow callout policy is used.