You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 11, 2019. It is now read-only.
I'm wondering if there is a way to synchronise a resource in a conditional way. Since I have resources that can be modified from different end points. For example:
Resource: Organizations
You can GET organizations doing: api.com/organizations or you can do api.com/backend/organizations, but you can't PUT api.com/organizations, you have to PUT api.com/backend/organizations
If you are a "regular" user, you will be using api.com/organizations entry point, but if you are in the backend section of the app, you will need to use api.com/backend/organizations, since more operations are allowed.
So I can only think 2 approaches for now:
I could duplicate the factories and have 2 Organizations factories, one pointing to api.com and the other pointing to api.com/backend, duplicating schemas, and everything.
Replace synchronizer at "runtime". I'm not sure if this possible, but if I could swap between a one of the other synchronizer when requesting the factory (or similar) I think it could work.