We have a ZUUL "Pre" Filter which checks for some condition and returns the default response by itself when a particular API (/abc) is called. When the condition is failed we are returning the response from the API.
The API is available in a service which is registered to Eureka.
Problem: The default response is getting returned to the client but the request is also send to the service, basically the API /abc is also getting called, we do not want the API to be called. How should we go about this.
Let me know if you need any details or code snippet. Thanks.