Dears, I need to validate all the request parameters i.e. CaseFees is Integer or not, in case its null or not integer then the WEB-API should throw an exception and shall not proceed next.
Kindly, need an answer as soonest
Thanks
Discussion posts and replies are publicly visible
Hi @asifh
As per my understanding, to achieve this requirement, you can follow below mentioned steps:
if( or( typeof(local!CaseFees) <> typeof(1), /* if request param is not of type Integer */ rule!APN_isEmpty(local!CaseFees) /* or if request parameter is empty */ ), a!httpResponse( statusCode: 500, body: "Parameters cannot be empty / should be of type Integer Only" ), {} )