-
Notifications
You must be signed in to change notification settings - Fork 839
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
method to intercept request to rewrite request url #603
Comments
Hey, I think this makes sense. Marking as enhancement :). Thanks! |
Was this ever done? I am in a similar position and can't figure out how to actually change the request url. |
Wondering whether this was ever done or planned to be done.. It will be very useful indeed. |
1+ |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1, doesn't appear to work in the addFullRequestInterceptor() method |
👍 |
+1 |
Any progress on this? This is causing me issues when trying to back ng-admin with postgrest. The style of workaround shown at https://github.com/marmelab/ng-admin-postgrest/blob/master/main.js#L39 doesn't work in the general case. |
This was done with I'm going to close this for now; feel free to re-open if there's still an issue |
(I can't reopen) |
@daurnimator Your issue is a separate issue than the OP. How about you open up another issue with your specific use case? |
I can; though there are many blog posts/faqs/stack overflow answers out there that already point to this issue as the relevant one for what I'm asking. |
@daurnimator While many other external sources may point to this issue, the OP's question was how to append It looks like this is already supported (see my Plunk), but if that still doesn't answer your question, please feel free to open another issue |
@daviesgeek Respectfully, the OP's question was not about appending .json to the end of the URL. The OP provided an illustration of what was intended; changing the path part of the URL from |
This is a question about
addRequestInterceptor
.Despite having access to the initial request URL (that is created by the URL builder), it doesn't seem to allow me to change the URL that ends up being used, I could be wrong.
My use case is this :
api/recipe/453
I'd like to transform the request url on the
.one(453)
fromapi/recipe/453/data.json
to merelyapi/recipe/data.json
then pull out the item with id matching453
using some lodash.I feel that
addRequestInterceptor
meets all but one of those needs (that of rewriting the eventual url used).Can you clarify if
addRequestInterceptor
makes it possible to do the following:The text was updated successfully, but these errors were encountered: