Hello Kong community,
We use Kong api-gw community edition and it works very well.
Recently we face a problematic, and I will be curious of what is the preferred way to answer it.
We have an API already deployed in production and already exposed to exernal. Let’s call it “totoapi”.
We have different consumers for this API. For the moment every path/subpath of this API are exposed regardless of the consumer.
But in the future we want to add endpoints/paths which should be only accessible from one specific consumer.
To sum up :
- consumer1 should access to /totoapi/*
- consumer2 should access to /totoapi/* and not access /totoapi/endpointspecific1
what would be the preferred way to do it?
I was thinking of multiple way to do it, creating multiple routes sections in the same service listing all the path, or maybe adding a specific plugin at the consumer level ?
Any hints appreciated.