![](/img/trans.png)
[英]How to import Azure Function App in Azure API Management using Terraform?
[英]Azure Function App documentation using API Management
我创建了一个 Azure 函数应用程序。 函数应用程序连接到 SQL DB 并具有以下功能
public static async Task Run( [HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req, ILogger log) { string Loan_id = req.Query["loanid"]; 字符串loan_amount = req.Query["loanamount"];
if (string.IsNullOrEmpty(loan_id)) {
//Do something when dont give loan id.
} else if (string.IsNullOrEmpty(loan_amount)) {
//DO something when dont give loan amount.
}
return new OkObjectResult("This is a test.");
}
我想使用 API 管理/Swagger 记录函数应用程序。 你能告诉我这是如何实现的吗?
提前致谢
您只需要从门户创建一个 API 管理服务实例,并使用开放的 api 添加函数端点。
您可以按照此文档进行操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.