I have the following two endpoints served by a single Azure Function:
- PUT /task/1/completed
- GET /task/1
Neither of these endpoints accept a request body and in both cases the Function code will return a 400 response if a body is found in the request. I have tested and confirmed this functionality when calling the Function directly.
When I setup the Function as a backend in API Management and start calling it via API Management I see different behaviour. The PUT endpoint still returns a 400 response while the GET endpoint returns a 200 response.
I suspect that API Management is stripping the request body of the GET request before passing it onto the Azure Function backend. If this is indeed the case then I am looking for some documentation that describes this behaviour.
I know that GET requests typically should not contain a request body. This question is not about RESTful APIs, rather the behaviour of API Management.
