9/17/2023 0 Comments Postman tutorial asp.net web api(It should be noted that, strictly speaking, HTTP does not force PUT to be idempotent, so you can implement your server to use PUT in a non-idempotent way. This is why PUT is generally used for the Update scenario calling Update more than once with the same parameters doesn't do anything more than the first call did.īy contrast, POST is NOT idempotent making the same call using POST with same parameters each time will cause two different things to happen, hence why POST is commonly used for the Create scenario (submitting two identical items to a Create method should create two entries in the data store). What this means is that if you make the same request twice using PUT, with the same parameters both times, the second request will have no effect. Technically speaking, you could use either for the Create or Update scenarios, and in fact this is rather common. POST and PUT are very similar in that they both send data to the server that the server will need to store somewhere. If you only need to update one field for the resource, you may want to use the PATCH method.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |