liuxiran commented on issue #2105: URL: https://github.com/apache/apisix-dashboard/issues/2105#issuecomment-911191098
Hi all, in order to make it more clear about what are the changes between the new design and the current manager-api admin-api, I made more detailed comparison: ### method and url  this is the comparison of current Manager-API and Admin-API, we can see that the method and url are almost the same, only one exception, Manager-API has a API to check is the route name is exist, actually this is only a logic in UI, and in our APISIX only route id is the unique Identification, we allow repeated names, so it would be better to remove this API and the Validation rules. the new design of route API is:  differences are: * keep the manager-api and admin-api the same * remove `PUT /apisix/admin/routes/{id}`, the reason comment here: https://github.com/apache/apisix-dashboard/issues/2105#issuecomment-909758567 * change `PATCH /apisix/admin/routes/{id}/{path}` to `PUT /apisix/admin/routes/{id}/{path}`, the reason: when user use this API they can easier update the whole specified path in the route, refer to https://en.wikipedia.org/wiki/Patch_verb, `PUT` method is more suitable. ### request parameters for create a route here is the comparison of the new design and the current Admin-API(Manager-API should the same parameters with Admin-API)  differences are: * only keep `uris`, remove `uri`, since `uris` contains `uri`, there is no need to keep two of them to Increase the difficulty of choice for users * only keep `hosts`, remove `host`, same reason with before * only keep `remote_addrs`, remove `remote_addr`, same reason with before ### Uniform response parameter format actually the response parameters struct is different between the Admin-API and Manager-API, here is the comparison,    and here is the new design as we talked about in the mail list  -- 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]
