Closed nijikokun closed 9 years ago
should be in the KONG RESTful interface?
This also means allowing to configure the same plugin for the same API multiple times.
Examples:
A
on API A
on endpoints A, D
B
on API A
on endpoints B, C
A
on API A
on endpoints A, C
A
on API A
on endpoints D
A
on API A
on endpoints B
+1
I should also add that certain plugins could also be per method as well.
@thefosk is this happening in the coming 0.3?
Not in 0.3.0
, but could happen in 0.3.1
or subsequent release
+1
+1
This feature should also enable plugins not just per endpoint, but per HTTP method too. Like:
curl 127.0.0.1:8001/apis/test.com/plugins/
-d "name=keyauth" \
-d "path=/hello/*/world/*" \
-d "method=POST, DELETE"
What's the status on this? I see it was removed from the 0.3.1 milestone, is it still a planned feature?
One more thing to be brought up is support for wildcards or regex when applying to endpoints.
@montanaflynn the milestones are here now: https://github.com/Mashape/kong/wiki
Closed in favor of #505.
Right now plugins encompass the entire API, meaning that they are invoked for every endpoint.
An amazing feature would be to allow specifying specific endpoints that the plugin works for, should no endpoints be specified it encompasses the entire API.
This shouldn't be done on a per plugin basis as that is not a DRY approach and would require each plugin to do additional work. The check should happen before the plugin is invoked.