Which HTTP methods match up to which CRUD methods?

Posted chucklu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Which HTTP methods match up to which CRUD methods?相关的知识,希望对你有一定的参考价值。

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?的主要内容,如果未能解决你的问题,请参考以下文章

Which dispatch method would be used in Swift?

在 Python 中填充字典的更惯用的方法

问题:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

String.match(正则 或 'string') 有两种方式

r语言match函数怎么用

使用Junit单元测试报错“No tests found matching Method test01(Test01) from ClassRequest@5387f9e0“