Custom Plugin - Virtual Endpoint

Team,

I was trying to implement Virtual endpoint through API Definition but sample provided in it is referring to building Custom Middleware.

API definition hyberlink takes me to tyk-operator/custom_plugin.md at master · TykTechnologies/tyk-operator · GitHub

Can you help with the valid example for virtual endpoint configuration?

Hi @SaravananPeriyasamy, the approach is the same for custom middleware and virtual endpoints. the gateway essentially treats the virtual endpoint as middleware that is invoked when the endpoint is called.

Thanks,
G