Custom local API

Is it possible to create a “local” API in TYK gateway so that it can call custom plugin.

Purpose to do so is that I would like to store set values into Redis using tyk.save_data(). So the idea is to call this “local” API and Tyk Gateway call a custom plugin and set the key value pair in Redis.

Thanks.

Hi,

Tyk does have internal Loop APIs but they are not accessible from rich plugins.

You could protect your API via an authentication key but another alternative is to bind it to another port using listen_port but needs a corresponding config option in your gateway config to enable the extra port If that port was not published outside your docker image it would only be available for your plugin to access.

Cheers,
Pete