FirebaseExtended / emberfire

The officially supported adapter for using Firebase with Ember

Home Page:https://firebaseopensource.com/projects/firebaseextended/emberfire/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Relationship with Outside API Model

ChristopherJohnson25 opened this issue · comments

I'm curious if this is possible. I'm using EmberFire for my user profile and authentication data, but using Ember Wordpress for all of my content. I have a model from Wordpress called trips and I'd like to give my EmberFire user a hasMany relationship to trips. Is this possible? I keep getting serializer errors and have not seen anything directly related to this in the docs.

commented

When you install emberfire it provides an application adapter so all requests go through your Firebase.

I think what you want to do, is create a second adapter (and probably serializer) for your trips model, so you can tell it to use your Wordpress endpoint for it.

I have a project with REST + Firebase and every think works fine to me. What you need to do is create adapter for other kinds of reources.
ember g adapter modelname
The REST and JSONAPI adapters from Ember already has their own serializer.