Routing Target Endpoint of API proxy as No Target

Not applicable

Hello,

When using API proxy conditional statements for routing target endpoint with 'RouteRule', is it possible to specify 'No Target' as well and then how can I do it? It is required to route a call in a single API proxy with bypassing the Backend Service just like No Target for some of the methods called, while other calls are to be handed to Backend Service as defined. If there is no way can we just set this to call to an empty API proxy prepared separately?

Regards,

Toshi

Solved Solved
1 2 2,112
1 ACCEPTED SOLUTION

Not applicable

Hi Toshi,

For such scenario, No need to define TargetEndPoint. Pl define RouteRule as below:

<RouteRule name="NullRoute">

<Condition>{MethodName} = "methodName"</Condition>

</RouteRule>

Specify corresponding variable at {MethodName}.

Cheers, Rajesh

View solution in original post

2 REPLIES 2

Not applicable

Hi Toshi,

For such scenario, No need to define TargetEndPoint. Pl define RouteRule as below:

<RouteRule name="NullRoute">

<Condition>{MethodName} = "methodName"</Condition>

</RouteRule>

Specify corresponding variable at {MethodName}.

Cheers, Rajesh

Hi @rdoda,

Thank you so much for the answer.

This would really help me.