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...
This is a great idea!
I’ve linked it up to a github issue for the same feature. https://github.com/Azure/azure-functions-host/issues/1968
Azure Functions Team
Any updates on this feature request? Adding ability to access request body would elevate proxies adoption exponentially.
Merging this with a similar item
Wagner Silveira commented
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.