One Star

Documentation on POST operation on TRestRequest

Hi,
I am a beginner in Talend Open Studio for ESB 5.6.0, I didn't found any documentation on how can i create a REST api to POST data.
Can anyone suggest me some example on same.
Thanks,
Ismail 
2 REPLIES
One Star

Re: Documentation on POST operation on TRestRequest

Hi, it is nearly the same as with GET:
but indeed it would help if the POST example was provided. Set a method to POST, and configure the URI and query parameters as with GET.
You have a POST form payload then simply add few parameters in the schema editor and a 'form' in Comments, if it is something else and it is Document or String then add a 'body' parameter of type Document or String
HTH, Sergey
One Star

Re: Documentation on POST operation on TRestRequest

Hi, it is nearly the same as with GET:
but indeed it would help if the POST example was provided. Set a method to POST, and configure the URI and query parameters as with GET.
You have a POST form payload then simply add few parameters in the schema editor and a 'form' in Comments, if it is something else and it is Document or String then add a 'body' parameter of type Document or String
HTH, Sergey