How can I apply validation that all request parameters in body are required for my post request? What policy expressions I may use? I am using following expression:
<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>
How can I restrict to input all body parameters for this post request?