No target proxy for Microgateway

Hi, Just like no target proxy in edge, when I try the same thing in Microgateway, it didn't work. once I give some target, I was able to hit the MG proxy.

Can I have a MG api proxy which will not hit the backend and just return me http 200 ok.

1 3 340
3 REPLIES 3

Former Community Member
Not applicable

Microgateway proxies must have a target endpoint. Therefore "No Target" proxies are not supported.

If you want to return a "200" OK for an API, then you can implement a custom plugin that returns "200" in the onrequest method.

Thanks Srinandans, but a plugin would be applied to all apis, I need to give some condition in the plugin with respect to base path.

And does that mean that microgateway proxy doesn't work without a target endpoint.

I have the same issue, I wrote a plugin to call multiple targets in parallel, so I want to create a "No target" Microgateway...

So there is no way to do so?