DS.RESTAdapter#findRecord()

findRecord (store, type, id, snapshot) Promise

Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:406
Available since 1.13.0

Called by the store in order to fetch the JSON for a given type and ID.

The findRecord method makes an Ajax request to a URL computed by buildURL, and returns a promise for the resulting payload.

This method performs an HTTP GET request with the id provided as part of the query string.

Parameters:

store DS.Store
type DS.Model
id String
snapshot DS.Snapshot

Returns:

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

Please login to continue.