This is responsible to handle connections between a RESTful server and the Backbone application is the Backbone.sync module. It transforms the
save() operations into HTTP requests:
fetch()is mapped as a
readoperation. This will make
GETto the the
urlRootattribute with the model ID for a model or the
urlattribute for a collection.
save()is mapped as a
updateoperation; it depends on the
createif the model does not have an ID (
true). A POST request is executed.
updateif the model already has an ID (
false). A PUT request is executed.
destroy()is mapped as a
deleteoperation. This will make DELETE to the ...