DS.RESTAdapter#_requestToJQueryAjaxHash()

_requestToJQueryAjaxHash (request) Objectprivate Defined in addon/adapters/rest.js:1344 Convert a request object into a hash which can be passed to jQuery.ajax. Parameters: request Object Returns: Object jQuery ajax hash

DS.RESTAdapter#_requestFor()

_requestFor (params) Objectprivate Defined in addon/adapters/rest.js:1326 Get an object which contains all properties for a request which should be made. Parameters: params Object Returns: Object request object

DS.RESTAdapter#_makeRequest()

_makeRequest (request) Promiseprivate Defined in addon/adapters/rest.js:1379 Make a request using jQuery.ajax. Parameters: request Object Returns: Promise promise

DS.RESTAdapter#_ajaxRequest()

_ajaxRequest (options) private Defined in addon/adapters/rest.js:1031 Parameters: options Object jQuery ajax options to be used for the ajax request

DS.RESTAdapter#urlForRequest()

urlForRequest (params) Stringpublic Defined in addon/adapters/rest.js:1274 Get the URL for a request. Parameters: params Object Returns: String URL

DS.RESTAdapter#updateRecord()

updateRecord (store, type, snapshot) Promise Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:735 Called by the store when an existing record is saved via the save method on a model record instance. The updateRecord method serializes the record and makes an Ajax (HTTP PUT) request to a URL computed by buildURL. See serialize for information on how to customize the serialized form of a record. Parameters: store DS.Store type DS.Model snapshot DS.Snapshot Retur

DS.RESTAdapter#sortQueryParams()

sortQueryParams (obj) Object Defined in addon/adapters/rest.js:244 By default, the RESTAdapter will send the query params sorted alphabetically to the server. For example: store.query('posts', { sort: 'price', category: 'pets' }); will generate a requests like this /posts?category=pets&sort=price, even if the parameters were specified in a different order. That way the generated URL will be deterministic and that simplifies caching mechanisms in the backend. Setting sortQueryParams t

DS.RESTAdapter#queryRecord()

queryRecord (store, type, query) Promise Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:511 Available since 1.13.0 Called by the store in order to fetch a JSON object for the record that matches a particular query. The queryRecord method makes an Ajax (HTTP GET) request to a URL computed by buildURL, and returns a promise for the resulting payload. The query argument is a simple JavaScript object that will be passed directly to the server as parameters. Parameters: s

DS.RESTAdapter#query()

query (store, type, query) Promise Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:475 Called by the store in order to fetch a JSON array for the records that match a particular query. The query method makes an Ajax (HTTP GET) request to a URL computed by buildURL, and returns a promise for the resulting payload. The query argument is a simple JavaScript object that will be passed directly to the server as parameters. Parameters: store DS.Store type DS.Model que

DS.RESTAdapter#parseErrorResponse()

parseErrorResponse (responseText) Objectprivate Defined in addon/adapters/rest.js:1086 Parameters: responseText String Returns: Object