tokers commented on issue #6580: URL: https://github.com/apache/apisix/issues/6580#issuecomment-1076118443
> hi @nfrankel , I create a new example follow your way. I think it looks good now. > > ```shell > $ curl -i https://my.host/apisix/admin/plugin_configs/1 -H 'X-API-KEY: abc' -X PUT -d '{ > "desc": "blah", > "plugins": [ > { > "id": "limit-count", > "priority": 500, > "conf": [ > { > "time_window": 60, > "count": 10, > "key": "remote_addr" > }, > { > "time_window": 1, > "count": 5, > "key": "route_id" > } > ] > }, > { > "id": "ip-restriction", > "priority": 200, > "conf": [ > { > "whitelist": [ > "127.0.0.1", > "113.74.26.106/24" > ] > } > ] > } > ] > }' > ``` I still think it'll confuse users, an array has an order attribute, but indeed we don't run the plugin as per their order in the array. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
