DS.BuildURLMixin#urlForFindAll()

urlForFindAll (modelName, snapshot) String

Defined in addon/-private/adapters/build-url-mixin.js:137

Builds a URL for a store.findAll(type) call.

Example:

app/adapters/comment.js
import DS from 'ember-data';

export default DS.JSONAPIAdapter.extend({
  urlForFindAll(id, modelName, snapshot) {
    return 'data/comments.json';
  }
});

Parameters:

modelName String
snapshot DS.SnapshotRecordArray

Returns:

String
url
doc_EmberJs
2016-11-30 16:49:30
Comments
Leave a Comment

Please login to continue.