A Plugin configuration can be bound directly to a Route, a Service or a Consumer. But what if we want a Plugin to work on all requests? This is where we register a global Plugin with Global Rule.
The example below shows how you can use the
limit-count Plugin on all requests:
curl -X PUT \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' \
You can also list all the Global rules by making this request with the Admin API: