Currently a plugin can be applied per api_id, and optionally per api_id and consumer_id.
We want a more flexible schema to apply plugins, that will allow us to:
- Customize a global plugin for every API, without specifying any specific api_id.(Closed with #1369)
- Customize a global plugin for every consumer, without specifying api_id and consumer_id.(Closed with #1369)
- Customize a plugin per:
- HTTP Method (method)
- Endpoint (endpoint, with regex support)
- By Request Header (Accept, Content-Type, User-Agent, etc…)
See GitHub Issue:
Applying a Plugin with a variety of global and specific properties #505