Calling Rest API using Invoke Rest API Activity

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

API using Tibco Invoke

For parsing input json in payload I used Parse JSON activity of Rest JSON plugin

API using Tibco Invoke

The ouput of parse Json activity will be:

API using Tibco Invoke

Now I used render JSON activity to convert result into JSON

API using Tibco Invoke API using Tibco Invoke

In order to invoking Rest service via invokes Rest activity I created a new process as shown below with configurations.

API using Tibco Invoke

For sending POST JSON request you need to send payload in body->Text->content

API using Tibco Invoke

This completes our Invoke Rest API activity configuration now let’s tests. Load both the dispatcher and rest invoke service process in designer tester.

API using Tibco Invoke

 

API using Tibco Invoke

API using Tibco Invoke

API using Tibco Invoke

API using Tibco Invoke