Back
In able to do that, try the below code and it will pass the POST parameter:
public static async void Run( [HttpTrigger(AuthorizationLevel.Function, "post", Route = null)] HttpRequest req, ILogger log) { var content = await new StreamReader(req.Body).ReadToEndAsync(); MyClass myClass = JsonConvert.DeserializeObject<MyClass>(content); }
public static async void Run(
[HttpTrigger(AuthorizationLevel.Function, "post", Route = null)]
HttpRequest req,
ILogger log)
{
var content = await new StreamReader(req.Body).ReadToEndAsync();
MyClass myClass = JsonConvert.DeserializeObject<MyClass>(content);
}
I hope this will help.
Want to become an Azure expert? join Azure Developer certification now!!
Want to know more about Azure Developer? Watch this video on How to Become Azure Developer? | Learn Azure:
30.9k questions
32.9k answers
500 comments
665 users