An Azure service that provides an event-driven serverless compute platform.
Azure Functions beginner
I have an Azure Function with an HTTP Trigger.
The Trigger is always caused by an Submit of an Order in Wixx.
The Issue is that i want to display the data which is given through Wix but i do know how do this and where to look on Azure ?
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.Functions.Worker;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
namespace FirstFunction
{
public class Function1
{
private readonly ILogger<Function1> _logger;
public Function1(ILogger<Function1> logger)
{
_logger = logger;
}
[Function("Function1")]
public IActionResult Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequest req)
{
_logger.LogInformation("C# HTTP trigger function processed a request.");
string requestbody = new StreamReader(req.Body).ReadToEnd();
dynamic data = JsonConvert.DeserializeObject(requestbody);
_logger.LogInformation($"C# HTTP trigger function processed a request. {{requestbody}}");
return new OkObjectResult($"Welcome to Azure Functions! {{requestbody}}");
}
}
}