How to implement when i have below scenario in apigee only policy level and without shared flow ?

I need to hit two back-ends and Back-end 2 is need to hit based on backend 1 response .

Can anyone offer help for this scenario?

Thanks in Advance...

Solved Solved
1 2 146
1 ACCEPTED SOLUTION

Hi @Vishal Kanabargi, within Apigee we can make use of Service Callout(SC) Policy to call HTTP based services and also to call other API Proxies in same org/env.

  1. You can create a Reverse API Proxy and enter the TargetEndpoint with Backend2 URL.
  2. In proxy add an SC policy with HTTP endpoint(this should be your Backend1 URL).
  3. When this SC policy executes, it gives a response.
  4. Use the Extract Variable policy to extract out the parameters which are needed.
  5. Use an Assign Message policy to set the extracted parameters either in headers, queryparams etc, which will be added to the Backend2 TargetEndpoint URL.

Go ahead and try it, if you face any issues please post here.

View solution in original post

2 REPLIES 2

Hi @Vishal Kanabargi, within Apigee we can make use of Service Callout(SC) Policy to call HTTP based services and also to call other API Proxies in same org/env.

  1. You can create a Reverse API Proxy and enter the TargetEndpoint with Backend2 URL.
  2. In proxy add an SC policy with HTTP endpoint(this should be your Backend1 URL).
  3. When this SC policy executes, it gives a response.
  4. Use the Extract Variable policy to extract out the parameters which are needed.
  5. Use an Assign Message policy to set the extracted parameters either in headers, queryparams etc, which will be added to the Backend2 TargetEndpoint URL.

Go ahead and try it, if you face any issues please post here.

Thanks a lot @Siddharth Barahalikar . Will try it 🙂