Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm trying to implement a REST API where the arguments contain a JSON object.
I've tried both tREST and tRESTClient without success.
Example :
{
"SessionToken": "",
"ClientToken": "",
"AdditionalInformation" : {
"StartDate" : "",
"EndDate" : ""
}
}
Try with a tRest component, with http method post and place your json in the corps http
Don't forget to put the header : Content-Type = "application/json"
Are you "implementing a REST API" or consuming a REST API? tREST and tRESTClient are only for the latter.
What error are you getting? Are you able to POST to the same web service using another tool like Postman?
Try with a tRest component, with http method post and place your json in the corps http
Don't forget to put the header : Content-Type = "application/json"
Thank you! I must have done something wrong when I tried it previously.
Is there a way to use programmatic, instead of fixed, arguments?