How to prevent the next() sequenced plugin being called

Give I receive a request at my custom plugin which does not require the OAuth or subsequent sequenced plugins to execute.

However I would like this request to make a call out to an alternative target and return data.

Can this be achieved with the Edge Microgateway? And if so how?

Thanks in advance,

Michael McD.

0 3 186
3 REPLIES 3

Former Community Member
Not applicable

To select an alternate target, please refer here: https://github.com/apigee/microgateway-core/issues/81

Thanks for the reply,

The main issue I'm facing now is how to prevent the subsequent plugins events from being called. In particular the - oauth plugins events.

Any ideas on this? Is that even possible?

Michael McD.

res.statusCode = 200;

res.end(data);