Remote methods are not the best solution, because they are designed for one model and, therefore, are not DRY.
You can make Ember data compatible with Strongloop loopback api using DS.RESTAdapter with DS.JSONSerializer as follows:
// app/adapters/application.js import DS from 'ember-data'; export default DS.RESTAdapter.extend({ host: 'http://loopback-api-host', namespace: 'api', defaultSerializer: 'JSONSerializer' });
http://emberjs.com/api/data/classes/DS.JSONSerializer.html
βIn Ember Data, the logic for communicating with the data warehouse is stored in the adapter. The Ember Data Adapter has some built-in assumptions about what the REST API should look like. If your backend conventions are different from these assumptions, Ember Data makes it easy to change its functionality. by replacing or expanding the default adapter. "
http://guides.emberjs.com/v2.0.0/models/customizing-adapters/
Similar question: Running the Loopback API Ember.js API
source share