mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
document patch
This commit is contained in:
@@ -2454,6 +2454,7 @@ $(function(){
|
||||
<li><b>create → POST </b><tt>/collection</tt></li>
|
||||
<li><b>read → GET </b><tt>/collection[/id]</tt></li>
|
||||
<li><b>update → PUT </b><tt>/collection/id</tt></li>
|
||||
<li><b>patch → PATCH </b><tt>/collection/id</tt></li>
|
||||
<li><b>delete → DELETE </b><tt>/collection/id</tt></li>
|
||||
</ul>
|
||||
|
||||
@@ -2489,7 +2490,7 @@ end
|
||||
<br />
|
||||
If you want to work with a legacy web server that doesn't support Backbone's
|
||||
default REST/HTTP approach, you may choose to turn on <tt>Backbone.emulateHTTP</tt>.
|
||||
Setting this option will fake <tt>PUT</tt> and <tt>DELETE</tt> requests with
|
||||
Setting this option will fake <tt>PUT</tt>, <tt>PATCH</tt> and <tt>DELETE</tt> requests with
|
||||
a HTTP <tt>POST</tt>, setting the <tt>X-HTTP-Method-Override</tt> header
|
||||
with the true method. If <tt>emulateJSON</tt> is also on, the true method
|
||||
will be passed as an additional <tt>_method</tt> parameter.
|
||||
|
||||
Reference in New Issue
Block a user