You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/09/01 00:32:35 UTC

[GitHub] [apisix-dashboard] liuxiran commented on issue #2105: Proposal: restful API for Route module

liuxiran commented on issue #2105:
URL: https://github.com/apache/apisix-dashboard/issues/2105#issuecomment-909758567


   > Others LGTM, but why not keep the `PUT` API?
   
   I tend to  guide the user to complete a target operation using the specified API, without ambiguity @nic-chen 
   
   For create, we can use `POST`, for update, we can use `PATCH`,
   
   As our doc says, `PUT` API is used to create a route by ID, `ID`  is used as a unique identifier and would  ideally be better generated by default. And on the other hand, it can also update the already existed route, and if we want to update route, `PATCH` would be more flexible to use.
   
   
   
   
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org