Привет. Стыдно признаться, но я прочитав много различных статей, все равно не до конца осознаю разницу между PUT и POST Спецификация HTTP 1.1 гласит, что PUT идемпотентен. Это значит, что клиент м...
PUT is used by FB to update the comment because an existing resource is being updated, and that is what PUT does (updates a resource). PUT happens to be idempotent, in contrast to POST.
The difference between POST and PUT is that PUT is idempotent, that means, calling the same PUT request multiple times will always produce the same result (that is no side effect), while on the other hand, calling a POST request repeatedly may have (additional) side effects of creating the same resource multiple times.
Alguns ensinam que POST é para enviar dados para criação de algo e que PUT é para atualizar, mas achei mal explicado. Então, afinal, qual é a diferença entre o método PUT e o POST? Quando devo us...
Por otro lado, el método PUT está enfocado a la actualización de un recurso del servidor, teniendo también otras diferencias, como la URI suministrada. Más información sobre los diferentes métodos y usos del protocolo HTTP en Wikipedia, y en el RFC 1945, así como en las posteriores revisiones del mismo.
Изучаю REST API. Не понимаю отличия метода PUT от PATCH: они же оба используются для обновления данных... Статьи в интернете на русском предоставляют много воды, нет ли ответа четко по-сути вопроса?
Since PUT requests include the entire entity, if you issue the same request repeatedly, it should always have the same outcome (the data you sent is now the entire data of the entity). Therefore PUT is idempotent. Using PUT wrong What happens if you use the above PATCH data in a PUT request?
Well, it depends. put and putAll are interface methods, so every real implementation of that interface will guarantee, that the put method puts a single key/value pair in the map while putAll will put all key/value pairs from the source. But it's up to the implementor how to do it and what to do in addition (internally). Sure, a trivial implementation would call put for each and every entry of ...