I have an ember-cli application using ember-data that consumes multiple API endpoints (using different adapters and serializers). How do I handle Two endpoints having a model entity of the same name effectively? If endpointA has a model named “posts” with a certain structure and endpointB also returns an entity named “posts” with an entirely different structure, how can I segregate my models and refer to them appropriately?
Ideally, the models directory would allow for sub-folders to define namespace. As in:
/models /endpointsA/posts.coffee /endpointsB/posts.coffee
I would then refer to my findAll for posts as “endpoints-a.posts”. Is there an existing way to have this functionality that I am glaring over? Thanks!