首页 > Web开发 > 详细

Which HTTP methods match up to which CRUD methods?

时间:2019-01-22 17:06:53      阅读:160      评论:0      收藏:0      [点我收藏+]

https://stackoverflow.com/questions/6203231/which-http-methods-match-up-to-which-crud-methods

 
Create = PUT with a new URI
         POST to a base URI returning a newly created URI
Read   = GET
Update = PUT with an existing URI
Delete = DELETE

PUT can map to both Create and Update depending on the existence of the URI used with the PUT.

POST maps to Create.

Correction: POST can also map to Update although it‘s typically used for Create. POST can also be a partial update so we don‘t need the proposed PATCH method.

 

Which HTTP methods match up to which CRUD methods?

原文:https://www.cnblogs.com/chucklu/p/10304592.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!