4
 Followers
16
 Likes

Allow per-method OnBeforeRequest/OnAfterResponse callbacks

Integration
Not right now

Often we need to treat some HTTP status code of a particular method differently. For example, it could be that one method returns a 403 as a result for a CheckPermissionsForObject, and we would want that converted to a boolean output, rather than a protocol exception.

Currently, there's no way to do that without an extension and the use of the Advanced callbacks, because we have not enough information to determine which rest method was called.

Created on 9 Jun 2017
Comments (7)
Changed the status to
Not right now


Hi Leonardo,


Sorry for the late reply, but we are not planning on delivering this in the near future.


The investment to do this properly is too big for the return and for the upcoming new features that we have in mind. Because of this, I’m marking this idea as “not right now”.


Nonetheless, thank you very much for your idea and keep it coming.

If you believe we missed some context that would change our perception about it, please give us more details about why you would need this and for what is the use case.


 Thanks!

Merged this idea with 'Create OnBefore and OnAfter Request actions for each individual api call' (created on 06 Nov 2018 12:58:40 by Mark Picton)

The OnBeforeRequest and OnAfterRequest functions are very useful when we need to manipulate the data that is sent or returned from a consumed api. However it would useful if we could create these actions per call rather than at the top level api. This would help as there are often different data structures returned on each individual call. 



This comment was:
- originally posted on idea 'Create OnBefore and OnAfter Request actions for each individual api call' (created on 06 Nov 2018 by Mark Picton)
- merged to idea 'Allow per-method OnBeforeRequest/OnAfterResponse callbacks' on 26 Nov 2018 09:23:17 by Carlos Alfaro

Changed the category to Integration




This comment was:
- originally posted on idea 'Create OnBefore and OnAfter Request actions for each individual api call' (created on 06 Nov 2018 by Mark Picton)
- merged to idea 'Allow per-method OnBeforeRequest/OnAfterResponse callbacks' on 26 Nov 2018 09:23:17 by Carlos Alfaro
Merged this idea with 'Have the ability to do on before and on after request at each method' (created on 25 Nov 2018 22:02:46 by Stacey Levine)

It would make error handling and special parameters easier to handle if we had on before and on after request at each method in addition to the web service collection. The only work around now is to separate each method which gets rid of the benefit of a single endpoint to manage,etc



This comment was:
- originally posted on idea 'Have the ability to do on before and on after request at each method' (created on 25 Nov 2018 by Stacey Levine)
- merged to idea 'Allow per-method OnBeforeRequest/OnAfterResponse callbacks' on 26 Nov 2018 09:24:09 by Carlos Alfaro

Hi, I also find this idea very useful. Indeed it's inconvenient to either separate a method into a different consumed rest api or check its url each time. 

views
454
Followers
4