In my previous article I have created rest service and invoke via browser Rest JSON Plugin. Now I am going to explain how you invoke rest API using Tibco Invoke Rest Activity.
For this I am creating sample Test Process for Accepting pay load data
For parsing input json in payload I used Parse JSON activity of Rest JSON plugin
The ouput of parse Json activity will be:
Now I used render JSON activity to convert result into JSON
In order to invoking Rest service via invokes Rest activity I created a new process as shown below with configurations.
For sending POST JSON request you need to send payload in body->Text->content
This completes our Invoke Rest API activity configuration now let’s tests. Load both the dispatcher and rest invoke service process in designer tester.