createRecord (store, type, snapshot) Promise
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
Please login to continue.