DS.RESTAdapter#createRecord()

createRecord (store, type, snapshot) Promise Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:700 Called by the store when a newly created record is saved via the save method on a model record instance. The createRecord method serializes the record and makes an Ajax (HTTP POST) 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

DS.RESTAdapter#ajaxOptions()

ajaxOptions (url, type, options) Objectprivate Defined in addon/adapters/rest.js:1040 Parameters: url String type String The request type GET, POST, PUT, DELETE etc. options Object Returns: Object

DS.RecordArrayManager#updateFilterRecordArray()

updateFilterRecordArray (array, filter, typeClass, record) Defined in addon/-private/system/record-array-manager.js:157 Update an individual filter. Parameters: array DS.FilteredRecordArray filter Function typeClass DS.Model record InternalModel

DS.RecordArrayManager#updateRecordArrays()

updateRecordArrays Defined in addon/-private/system/record-array-manager.js:93 This method is invoked whenever data is loaded into the store by the adapter or updated by the adapter, or when a record has changed. It updates all record arrays that a record belongs to. To avoid thrashing, it only runs at most once per run loop.

DS.RESTAdapter

DS.RESTAdapter Class Extends: DS.Adapter Uses: DS.BuildURLMixin Defined in: addon/adapters/rest.js:31 Module: ember-data The REST adapter allows your store to communicate with an HTTP server by transmitting JSON via XHR. Most Ember.js apps that consume a JSON API should use the REST adapter. This adapter is designed around the idea that the JSON exchanged with the server should be conventional. Success and failure The REST adapter will consider a success any response with a status code of

DS.RecordArrayManager#unregisterRecordArray()

unregisterRecordArray (array) Defined in addon/-private/system/record-array-manager.js:329 Unregister a RecordArray. So manager will not update this array. Parameters: array DS.RecordArray

DS.RecordArrayManager#liveRecordArrayFor()

liveRecordArrayFor (typeClass) DS.RecordArray Defined in addon/-private/system/record-array-manager.js:229 Get the DS.RecordArray for a type, which contains all loaded records of given type. Parameters: typeClass Class Returns: DS.RecordArray

DS.RecordArrayManager#updateFilter()

updateFilter (array, modelName, filter) Defined in addon/-private/system/record-array-manager.js:202 This method is invoked if the filterFunction property is changed on a DS.FilteredRecordArray. It essentially re-runs the filter from scratch. This same method is invoked when the filter is created in th first place. Parameters: array Array modelName String filter Function

DS.RecordArrayManager#registerFilteredRecordArray()

registerFilteredRecordArray (array, typeClass, filter) Defined in addon/-private/system/record-array-manager.js:310 Register a RecordArray for a given type to be backed by a filter function. This will cause the array to update automatically when records of that type change attribute values or states. Parameters: array DS.RecordArray typeClass DS.Model filter Function

DS.RecordArrayManager#createAdapterPopulatedRecordArray()

createAdapterPopulatedRecordArray (typeClass, query) DS.AdapterPopulatedRecordArray Defined in addon/-private/system/record-array-manager.js:287 Create a DS.AdapterPopulatedRecordArray for a type with given query. Parameters: typeClass DS.Model query Object Returns: DS.AdapterPopulatedRecordArray