tRestClient: how to set body in POST request

Highlighted
Five Stars

tRestClient: how to set body in POST request

How do I set body request in tRestClient similar to what I can do in tRest? I can't edit "Input Schema". It just says "body" is type Document but it's read only. If I switch it back and forth to Repository, it becomes empty but still Read Only.


Accepted Solutions
Seven Stars

Re: tRestClient: how to set body in POST request

Hi dnaboka,

In case of get you can set it in query parameters but for post request  you have to pass the body (type -> document) as an input row to the tRestClient component.

 

 

Best Regards,

Abhishek


All Replies
Five Stars

Re: tRestClient: how to set body in POST request

It's quite straightforward in tRest and a basic feature of any web services client. What am I missing here?

Seven Stars

Re: tRestClient: how to set body in POST request

Hi dnaboka,

In case of get you can set it in query parameters but for post request  you have to pass the body (type -> document) as an input row to the tRestClient component.

 

 

Best Regards,

Abhishek

Four Stars

Re: tRestClient: how to set body in POST request

Hi Abhishek,

 

I am facing the same problem, I need to send a body in a POST request.

 

I have passed the body as document type in the input row to tRestClient component, but it didn't do anything. Please have a look the attached screenshots.

 

The screenshot you provided does not even have a tRestClient component.

 

Please Help!

 

trestclient_advanced.png
trestclient_basic.png

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download