How to use query parameters withe trestclient using odata restservice

One Star

How to use query parameters withe trestclient using odata restservice

Hi,

 

I am consuming a rest webservice that uses ODATA queries. I use the TRestClient for this purpose.

With query parameter I would like to call the webservice.

The parameter looks like

Name         Value

$expand    "personalia($expand=*),homeAddress($expand=*),contactInformation($expand=*),contracts($expand=*)"

 

The input afte the "," is not seen bij the call of the webservice. So, only $expand    "personalia($expand=*)" works fine, but "personalia($expand=*),homeAddress($expand=*),contactInformation($expand=*),contracts($expand=*)" does not work.

 

Does anyone has an idea? Do i have to escape the "," with a "/" ?


Accepted Solutions
One Star

Re: How to use query parameters withe trestclient using odata restservice

found it: escape , with 2c%

 

"personalia($expand=*)%2ChomeAddress($expand=*)%2CcontactInformation($expand=*)%2Ccontracts($expand=*)"


All Replies
One Star

Re: How to use query parameters withe trestclient using odata restservice

found it: escape , with 2c%

 

"personalia($expand=*)%2ChomeAddress($expand=*)%2CcontactInformation($expand=*)%2Ccontracts($expand=*)"

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download