Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Request to extend appAPI.request.get/post onFailure method with URL

Hi,

Would it be possible, for coding comfort, to add the original request URL to the onFailure callback of both GET and POST requests (http://docs.crossrider.com/#!/api/app...)?

The reason is that I am making a lot of different calls, and while onSuccess processing is usually different for each (parsing the correct data etc), the onFailure function is more or less the same — just report the connection issue. So it would be nice to use the same function for error processing, yet I would like to be able to know which call the error happened for.

I hope this won't be too much trouble to implement (and if added as a second parameter it won't affect the existing client code).
1 person likes
this idea
+1
Reply