Resend to multiple location.

I have been asked to create an Apigee endpoint that receiving a payload and call another endpoint.

No problem. It's do something like this:

I call apigee.com/myApiProxy -> OurCompanyApi.com

But they asked me to upgrade the links and send the payload up to 3 other APIs if conditions are made.

So I receive a payload and if the "newsletter" variable is set to true I'm supposed to do:

apigee.com/myApiProxy -> OurCompanyApi.com

AND

apigee.com/myApiProxy -> OurCompanyApi.com/NewsletterSubscribe

And another variable for another subscription

apigee.com/myApiProxy -> OurCompanyApi.com/OtherSubscription.

Right Now I get every variable from the payload in a javascript file.

Now the question: Can I redirect up to 3 links ?

Thanks

0 4 152
4 REPLIES 4

@Stephane Lajeunesse

you can send it to three different URLs using a service callout or javascript http client.

Thanks will look at this. I will search for example.

@Nagashree B, do you have some example or video about service callout for Apigee? I search and didn't find good stuff. Thanks