I am building a Backbone.js based interface on top of a custom SharePoint-based application which uses SOAP for communication (I use the excellent SPServices jQuery library to talk to the Web Service). From what I know Backbone models use the REST architecture to fetch and update data.
So if I have to customize the CRUD operations, what are the model methods I have to override? Is there a skeletal example I can use?
You will need to override the Backbone.sync function.
Here’s the documentation: http://documentcloud.github.com/backbone/#Sync
And as a reference, here’s the source code for the default Backbone.sync function: https://github.com/documentcloud/backbone/blob/master/backbone.js#L1012