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
pass host, namespace into resource changes #146
Comments
Hi @ShMcK It is correct understand that currently in the v1 we only support one Host / endpoint path, and the crud operations works of these. To under stand your usecase you have 2 diffrent api paths I think this would be a nice feature since you dont necessarily want one api to serve as a proxy for other api's it could be 3th party vendors that supports json api spec, i would like to see a possible solution from you, but i would urge you to take a look from the v2 branch as this is already handlign a lot of this setting up host and endpoints, maybe this could be expanded. |
I've put together a basic PR that allows for overwriting any axiosConfig keys. |
Resolves redux-json-api#146.
Resolves redux-json-api#146. overwrites existing config, rather than replacing it, as recommended by @egeriis.
There should be a way to support namespaced (v2, v3) endpoints or changed urls with redux-json-api. Currently this is not supported with
createResource
,deleteResource
&updateResource
.This could be handled with a few modifications to the
state-mutation.js
helpers file, or by granting the ability to overwrite the Axios config when needed.Happy to put in a PR or take suggestions.
The text was updated successfully, but these errors were encountered: