Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

How to differenciate models with the same name coming from two APIs?

$
0
0

@simonc wrote:

Hello,

We’re having a hard time finding the best way to handle conflicting models from two APIs. Both APIs use JSONAPI and provide the posts and comments endpoints.

Our Ember application needs to be able to use those two APIs on the same page. What would be the best approach?

We’ve tried creating a separate adapter for the second API but when the payload is parsed the records are stored in the first API’s posts :confused:

The application was developed using the first API api1.test.com/api/v1/posts and we now need to compare the posts from the second API api2.test.com/api/v2/posts.

Is there any way to completely encapsulate what comes from a specific API to avoid this kind of conflicts?

Thanks! :heart:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles