- Thomas Chiu
- PowerBuilder
- Friday, 15 May 2020 03:34 PM UTC
We are trying to use the new RESTClient object to call some internally developed REST services (Appeon Powerbuilder 2019 R2 Build 2328)
This REST service requires several parameters that acts as filters for the actual data retrieval. Because of this, we have to pass a JSON string as part of the REQUEST BODY to the "GET" REST service.
For example, the REQUEST BODY would contain something like this:
[
{
"soldToCustomers": [
{
"customerID": "000001"
}
],
"documentDateFrom": "2019-01-23",
"documentDateTo": "2019-05-25",
"salesOrderStatus": "ALL"
}
]
Does the RESTClient object allow us to attach a REQUEST BODY to the GET function (either the Retrieve method or the SendGetRequest method).
Or does the RESTClient only accept "Path Parameters" right now?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.