使用Azure API Management, Functions, Power Apps和Logic App构建应用 (2)

public static class InventoryNotifier { [OpenApiOperation(operationId: nameof(SendLowStockNotification), Visibility = OpenApiVisibilityType.Important) ] [OpenApiRequestBody(contentType: "application/json", bodyType: typeof(Product[]), Required = true) ] [FunctionName(nameof(SendLowStockNotification))] public static async Task<IActionResult> SendLowStockNotification( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] HttpRequest req, ILogger log) { // function code... } }

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wpfwyg.html