nice proposal for me. only one small point, how about the shorter one? `plugin_config_id` -> ` plugin_id`
^_^ On Tue, Jan 19, 2021 at 10:14 AM Zexuan Luo <[email protected]> wrote: > - This idea is to reuse some common plugin configuration between routes. > > The solution contains several steps: > 1. add namespace `/plugin_configs` > Item in this namespace should have fields below: > * id > * name > * plugins > * create_time > * update_time > (Note: the arguments in plugins should pass the schema check.) > > 2. bind the plugin_config in route via plugin_config_id > - 3. Like merging service, we merge the plugin_config into route when the > route is hit. Note: should change route's modifiedIndex when plugin_config > changed. When plugin_config and route has the same plugin, the one from > plugin_config will override the one in the route. > > What about your opinions? > -- *MembPhis* My GitHub: https://github.com/membphis Apache APISIX: https://github.com/apache/apisix
