This commit is contained in:
Tommy Parnell
2019-04-06 06:32:04 -04:00
parent a108eb6992
commit 747c36a87b
9 changed files with 125 additions and 11 deletions

24
Fryer.cs Normal file
View File

@@ -0,0 +1,24 @@
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
namespace azure_functions_talk
{
public static class Fryer
{
[FunctionName("Fryer")]
public static async Task<IActionResult> Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] Batter req,
ILogger log)
{
await Task.Delay(100);
return new OkObjectResult(new Fried() { Id = req.Id });
}
}
}