Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using multiple APIs with different baseUrls #79

Closed
re5et opened this issue Oct 1, 2018 · 1 comment
Closed

Using multiple APIs with different baseUrls #79

re5et opened this issue Oct 1, 2018 · 1 comment

Comments

@re5et
Copy link

re5et commented Oct 1, 2018

I want to talk to multiple different apis, different from model to model. Is there a simple way to do something like this? I have been doing a bunch of tricks with fetchReference to swap out the url at the time of the request, but that doesn't feel too right. Any way I can set baseUrl per model instead of just on config ?

@re5et
Copy link
Author

re5et commented Oct 2, 2018

nvm, figured it out. The reason baseUrl wasn't working at the model level was that I was missing some type specifications in my collection. The model still worked which was weird, but __prependQuery couldn't find the model to pull baseUrl from it.

@re5et re5et closed this as completed Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant