我正在使用Azure函数版本3创建post端点。在Asp.net中,使用FromBody标签获取post对象非常方便,使用模型绑定将会产生神奇的效果。有没有办法在Azure Functions v3中使用FromBody标签?
发布于 2020-01-30 19:51:23
是的,你可以这样做,
public static async Task<IActionResult> Run([HttpTrigger(AuthorizationLevel.Function, "post")][FromBody] User user, ILogger log, ExecutionContext context)这是一个Example
https://stackoverflow.com/questions/59985215
复制相似问题