How to use REST connector

1
0
-1

Hello everyone.
I want to connect with REST server within REST connector.
URL: http://www.example.com//target-api-1/service/perform (method POST)
JSON parameter (in body section)
{
"target-name": "bonita",
"method-name": "test-1",
"params": {
"name ": "sample - name ",
"family ": "sample - family "
}
}
After test, show this message

Connector execution is successful but has no output.

I test above code with simple html form like this and works good:

<form method = "POST" action="http://www.example.com/target-api-1/service/perform">
      target-name:<br/>
      <input type="text" name="target-name" value="bonita">
      method-name:<br/>
      <input type="text" name="method-name" value="test-1">
      <input type="text" name="params" value='{"name":"sample-name","family":"sample-family"}'>
      <input type="submit" value="Submit">
</form> 

Answer:

Full name is: sample-name sample-family @Sun Apr 10 12:15:09 IRDT 2016

I use Bonita 7.1.2 community version.
Thanks a lot.

No answers yet.
Notifications