How to pass request payload in JSON format to REST client

One Star

How to pass request payload in JSON format to REST client

Hi,
We are planning to automate REST API testing. Our REST API will use request payload in JSON format along with few request headers. Is there any way to pass the payload to REST web client. Below is the sample request payload format that we are using.
{  
  "searchType":"Search",
  "startIndex":0,
  "pageSize":1000,
  "types":,
  "indexName":"market",
  "sortField":"rank",
  "sortingOrder":"ASC",
  "fields":{  
 "reportkey":2536,
 "type":"c",
 "weekid":"201623",
 "market":"0",
 "categoryid":32
  },
  "resultFields":,
  "filterChains":,
  "resultFilterChainEnable":true,
  "ruleKey":"audienceFactor"
}
Moderator

Re: How to pass request payload in JSON format to REST client

Hi,
Here is a TalendHelpCenter:tRESTClient component which is used to interact with RESTful Web service providers by sending HTTP and HTTPS requests using CXF (JAX-RS).
Please take a look at this component reference for details.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.