I can’t find a good example of working fully with REST, every example touches only CRUD. REST allows urls as /api/1/reports/general.
How to properly send request to API for nested url?
I’ve tried:
this.store.find('report/general')
this.store.find('report.general')
Last idea was to use just this.store.find('report', { type: 'some-type' })
. But this also not gone well, I have different model for reports/general.
I’ll appreciate any help, thanks!
UPDATE:
One idea that actually worked, to use native jQuery Ember.$.getJSON
:
model: function () {
return Ember.RSVP.hash({
indicator: this.store.find('indicator'),
profile: this.store.find('profile'),
conversationUpdate: Ember.$.getJSON('api/1/reports/conversation.json')
});
},
Is there any better solution for this?