How can we improve Microsoft Azure Functions?

Proxies should support backend.request.body expressions in requestOverrides

Would be great to be able to create or change the request BODY dutring request overrides processing like it is possible for headers and the method already. Expressions could override parts of the body, create a body when e.g. overriding a GET to a POST or update body parts / subparts. Even deletion of body or body parts would be usable...

11 votes
Sign in
(thinking…)
Password icon
Signed in as (Sign out)

We’ll send you updates on this idea

Alfred shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

3 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...
  • Shyam commented  ·   ·  Flag as inappropriate

    Any updates on this feature request? Adding ability to access request body would elevate proxies adoption exponentially.

  • Wagner Silveira commented  ·   ·  Flag as inappropriate

    We should have access to request.body and request.body.<properties> if the content-Type is JSON. This would allow for more advanced mocking capabilities, with semi-dynamic responses based on the request. Right now the functionality is way too limited, but the foundation is already there, as we have access to request.method, request.headers.<headername>, so feels like a natural extension.

    It would still not conflict with APIM, as we are not allowing request transformation, just a more comprehensive mock service, which is one of the advantages of Function Proxies.

Feedback and Knowledge Base