how to pass parameters in TrestClient like parameters in Restlet Client

Highlighted
Six Stars

how to pass parameters in TrestClient like parameters in Restlet Client

Hello Community

I had tested to send a json file with parameters to my api  in Restlet Client(like Postman) and it's went well, however i don't know how to pass this parameters in Tresclient or tRest

I have two parameters: 

courrierArriveeDTO: in which i add my file json 

modeSaisie : i enter method ADD

Please find below the screenshot of this parameters,

any idea!!!!parameters_restlet.PNG

Thanks

Highlighted
Eight Stars

Re: how to pass parameters in TrestClient like parameters in Restlet Client

Hi @shima ,

 

You can pass the query parameters as mentioned in the screenshot.

Capture5.JPG

 

Thanks and Regards,

Subhadip

Highlighted
Six Stars

Re: how to pass parameters in TrestClient like parameters in Restlet Client

hi @subhadip13 

i was already tested that but i still receive the error that i have before testing them:

Exception in component tRESTClient_2 (trest)
javax.ws.rs.WebApplicationException: HTTP 500 Internal Server Error.

this is the screenshot of this paremetres:parametres2.PNG

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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 3

Read about some useful Context Variable ideas

Blog