【发布时间】:2021-06-22 02:29:51
【问题描述】:
如何验证我的发布请求需要正文中的所有请求参数?我可以使用哪些策略表达? 我正在使用以下表达式:
<policies>
<inbound>
<base />
<choose>
<when condition="@((context.Request.Body) != null&& ((int)context.Request.Body.As<JObject>()["Id"])>0)">
<return-response>
</return-response>
</when>
<otherwise>
<return-response>
</return-response>
</otherwise>
</choose>
</inbound>
我如何限制为这个帖子请求输入所有正文参数?
【问题讨论】:
标签: azure azure-api-management