/** * @author Ed Spencer * @class Ext.data.RestProxy * @extends Ext.data.AjaxProxy * *Specialization of the {@link Ext.data.AjaxProxy AjaxProxy} which simply maps the four actions (create, read, * update and destroy) to RESTful HTTP verbs
*/ Ext.data.RestProxy = Ext.extend(Ext.data.AjaxProxy, { /** * Mapping of action name to HTTP request method. These default to RESTful conventions for the 'create', 'read', * 'update' and 'destroy' actions (which map to 'POST', 'GET', 'PUT' and 'DELETE' respectively). This object should * not be changed except globally via {@link Ext.override} - the {@link #getMethod} function can be overridden instead. * @property actionMethods * @type Object */ actionMethods: { create : 'POST', read : 'GET', update : 'PUT', destroy: 'DELETE' }, api: { create : 'create', read : 'read', update : 'update', destroy: 'destroy' } }); Ext.data.ProxyMgr.registerType('rest', Ext.data.RestProxy);