As a newcomer to Ember.js, I am currently delving into understanding how Ember works. One issue I have encountered is calling my Django API from an Ember.js route using the following code:
this.store.findAll('MYMODEL', 'ANOTHER_MODEL_ID')
When executing this findAll method, it generates an API call like /mymodel/another_model_id/ where another_model_id is a dynamic ID (uuid-like string).
In my attempts to solve this problem, I experimented with overriding the findAll method using a custom adapter (mymodel adapter) that extends the ApplicationAdapter (JSONAPIAdapter with a custom buildUrl for adding a trailing slash). However, my efforts were unsuccessful as I struggled to access the ANOTHER_MODEL_ID parameter within the overridden method. I also explored overriding urlForFindAll and buildUrl methods but faced similar challenges.
What would be the most effective approach to accomplish this task and how can I achieve it successfully?