public static async Task <IActionResult> OrderFolderPut( [HttpTrigger(AuthorizationLevel.Anonymous, "put", Route = "order_folders/{id}")] [RequestBodyType(typeof(OrderFolderInput), "OrderFolder")] HttpRequest req, string id, ILogger log) { var result = await GenericMantainer.SendInternalHttp(req, log, s => s.OrderFolder, id); return(result.JsonResult); }
public static async Task <IActionResult> BarracksPost( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "barracks")] [RequestBodyType(typeof(BarrackInput), "Barrack")] HttpRequest req, ILogger log) { var result = await GenericMantainer.SendInternalHttp(req, log, s => s.Barrack, string.Empty); return(result.JsonResult); }
public static async Task <IActionResult> CostCenterPost( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "cost_centers")] [RequestBodyType(typeof(CostCenterInput), "CostCenter")] HttpRequest req, ILogger log) { var result = await GenericMantainer.SendInternalHttp(req, log, s => s.CostCenter, string.Empty); return(result.JsonResult); }
public static async Task <IActionResult> RootStockPut( [HttpTrigger(AuthorizationLevel.Anonymous, "put", Route = "rootstock/{id}")] [RequestBodyType(typeof(RootstockInput), "Rootstock")] HttpRequest req, string id, ILogger log) { var result = await GenericMantainer.SendInternalHttp(req, log, s => s.Rootstock, id); return(result.JsonResult); }
public static async Task <IActionResult> ProductPut( [HttpTrigger(AuthorizationLevel.Anonymous, "put", Route = "products/{id}")] [RequestBodyType(typeof(ProductInput), "Product")] HttpRequest req, string id, ILogger log) { var result = await GenericMantainer.SendInternalHttp(req, log, s => s.Product, id); return(result.JsonResult); }
public static async Task <IActionResult> BusinessNamePut( [HttpTrigger(AuthorizationLevel.Anonymous, "put", Route = "business_names/{id}")] [RequestBodyType(typeof(BusinessNameInput), "BusinessName")] HttpRequest req, string id, ILogger log) { var result = await GenericMantainer.SendInternalHttp(req, log, s => s.BusinessName, id); return(result.JsonResult); }
public static async Task <IActionResult> CategoryIngredientPost( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "ingredient_categories")] [RequestBodyType(typeof(IngredientCategoryInput), "IngredientCategory")] HttpRequest req, ILogger log) { var result = await GenericMantainer.SendInternalHttp(req, log, s => s.IngredientCategory, string.Empty); return(result.JsonResult); }
public static async Task <IActionResult> CertifiedEntityPost( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "certified_entities")] [RequestBodyType(typeof(CertifiedEntityInput), "CertifiedEntity")] HttpRequest req, ILogger log) { var result = await GenericMantainer.SendInternalHttp(req, log, s => s.CertifiedEntity, string.Empty); return(result.JsonResult); }
public static async Task <IActionResult> PhenologicalEventPost( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "phenological_events")] [RequestBodyType(typeof(PhenologicalEventInput), "PhenologicalEvent")] HttpRequest req, ILogger log) { var result = await GenericMantainer.SendInternalHttp(req, log, s => s.PhenologicalEvent, string.Empty); return(result.JsonResult); }
public static async Task <IActionResult> ExecutionsStatusPost( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "executions_status")] [RequestBodyType(typeof(ExecutionOrderStatusInput), "ExecutionOrderStatus")] HttpRequest req, ILogger log) { var result = await GenericMantainer.SendInternalHttp(req, log, s => s.ExecutionOrderStatus, string.Empty); return(result.JsonResult); }
public static async Task <IActionResult> TargetPost( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "targets")] [RequestBodyType(typeof(ApplicationTargetInput), "ApplicationTarget")] HttpRequest req, ILogger log) { var result = await GenericMantainer.SendInternalHttp(req, log, s => s.ApplicationTarget, string.Empty); return(result.JsonResult); }