I am having trouble with a specific case using Ember-Data.
Typically Ember expects a model class, the route, the ajax request, and the returned JSON, to all follow a similar pattern.
The RESTAdapter tries to automatically build a URL to send to the server, which is ok for some situations, but I need full control over some of my request URLs particularly when it comes to appending additional parameters, or matching an API to a route that has a completely different URL structure.
Ember sadly, has no guides for this, though I did find something about the
I am not comfortable enough rooting through the source code to find out what happens under the hood though I do not want to break ember just to fix a few use cases.
- I have set my RESTAdapter’s namespace to “api/rest”
- The model and resource I want to populate is “view-debtors”
- The specific service I want to reach is at “debtor/list”
- I also need to pass extra parameters for pagination “?page_size=10&page_number=1”, for example.
I am completely lost how to do this. I cannot change the API structure… there are too many services depending on them.