I currently have two simple microservices one that returns a true or false and one that returns a string.
I need to be able to connect to the first microservice that returns a status of true or false in the header. If it returns false, then apigee needs to return an error and stop the execution. If it returns true, then it needs to send that response to the second microservice and allow the user to hit the second microservice.
I've looked online at the best solution for this and i've seen the ServiceCallout Policy is the best way of doing this task. But im not sure how i would implement this using this policy.
Any ideas would be much appreciated.