I use site editor for Azure Function. I modified initial function code, so it is now:
#r "Newtonsoft.Json"
using System.Net;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Primitives;
using Newtonsoft.Json;
public static async Task<IActionResult> Run(HttpRequest req, ILogger log)
{
string requestBody = await new StreamReader(req.Body).ReadToEndAsync();
log.LogInformation(requestBody);
return new OkObjectResult(requestBody);
}
then added an output to Cosmos Db using output parameter $return
when I'm testing my function I get 404 and nothing else
has anybody faced this issue and what can be done?