tRESTResponse not responding JSON body

Six Stars

tRESTResponse not responding JSON body

step1.pngWhen I call this jobs REST Request via Postman it fires and prints out the expected JSON in the console shown. It also shows that the tLogRow component is passing that same data along to the tRESTResponse.step3.pngThe response body is always empty.step2.png


Accepted Solutions
Community Manager

Re: tRESTResponse not responding JSON body

Select 'String' in the Return body type on tRestResponse, and the output column should be named as 'body' on tWriteJsonFields. Let me know if it works. Regards Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post


All Replies
Community Manager

Re: tRESTResponse not responding JSON body

Select 'String' in the Return body type on tRestResponse, and the output column should be named as 'body' on tWriteJsonFields. Let me know if it works. Regards Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post

Six Stars

Re: tRESTResponse not responding JSON body

For whatever reason renaming the tWriteJSONField component output to "body" did the trick. (I don't understand why at all). FYI left the tRESTResponse type as Document.

 

Thanks!

2019 GARTNER 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

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read