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

Returns:

Promise
promise
doc_EmberJs
2016-11-30 16:50:26
Comments
Leave a Comment

Please login to continue.