I have an Azure function written in Javascript.
the functions takes as a parameter the context and the request as follows:
function(context, req)
It's pretty easy to retrieve anything passed through a GET request by using the req object, if for example I pass name=test in the URL I can retrieve it in my code as follows:
var myVar = req.query.name
Anyhow, when it happens that the verb is not a GET but a POST (and as a consequence the data are passed in the body and not as param in the URL), I don't know the way to retrieve the data.
The official documentation did not help me to understand this specific context, although it should be a silly thing.
How can I populate the variable myVar if the key "name" is passed in the body?
Any help would be appreciated