What is the main difference between PATCH and PUT request?

后端 未结 8 2002
悲&欢浪女
悲&欢浪女 2020-11-28 01:18

I am using a PUT request in my Rails application. Now, a new HTTP verb, PATCH has been implemented by browsers. So, I want to know what the main di

8条回答
  •  半阙折子戏
    2020-11-28 02:05

    Put and Patch method are similar . But in rails it has different metod If we want to update/replace whole record then we have to use Put method. If we want to update particular record use Patch method.

提交回复
热议问题