webMethods 10.5
Licensed
Creating restV2 resource rest endpoint
Hi,
Does anybody know how to return a boolean response in the response body. I am using pub.flow:setResponse2 to set the response string:
I want to return something like below:
Positive response
{
"success": true,
}
Negative response
{
"success": false,
"error": "xyz"
}
Thanks
#webMethods#webМethods-cloud#webMethods-io-Integration