PUT与...之间的差异POST [英] Difference between PUT & POST
本文介绍了PUT与...之间的差异POST的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Web APi-2 Action Method中发送Employee Data,之后调用存储库来插入/更新/删除。
每次使用Httppost Verb并在该存储库调用后获取数据操作方法我的商店程序和插入/淹没/删除工作正常。
因此,不使用Get / put并删除通过post方法执行的所有操作。
所以有任何情况需要付款???
我尝试过:
总是使用Httppost和调用存储过程。
I am sending Employee Data in Web APi-2 Action Method and after that calling repository to insert/update/delete.
Every time using Httppost Verb and getting data in action method after that repository calling my store procedure and insertion/inundation/deletion is working proper.
So without using Get/put and delete every thing doing by post method.
so is there any situation where put is required ???
What I have tried:
Allways using Httppost and calling store procedure.
推荐答案
PUT和POST都可用于创建。更一般地说,PUT是创建资源而POST是更新资源。
您的答案是这里 [ ^ ]。
KR
Both PUT and POST can be used for creating. In more general, PUT is to create a resource whereas POST is to update a resource.
Your answer is here[^].
KR
这篇关于PUT与...之间的差异POST的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文