Description
Currently, all the resources under apisix.admin are basically copied and pasted from a template and changed. If you make general changes to the resource, such as fix count or add adapter, you need to change it file by file. And due to historical problems, some resource implementation methods are incomplete.
I hope we can refactor the code to something like core.config.new, where we only need to pass a few parameters to create a new resource.
Note: Please read every resource file before jumping into the refactor. Some resources have particular logic. We need a smart way to handle them.
CC @An-DJ