Call external Http Rest API

 

To call external HTTP REST APIs, We can start by creating project in Anypoint studio

For this tutorial we will Invoke below rest URL

http://dummy.restapiexample.com/api/v1/employees

Drag and drop http listener and configure

Call HTTP REST service

 

also set path as /getAllemployees

Call HTTP REST service

 

Drag and drop Http Requester and configure the host as dummy.restapiexample.com

Call HTTP REST service

 

Configure the resource path

Call HTTP REST service

 

Export the jar file and deploy the application on Cloudhub

 

Test the application

  
Thank you for taking out time to read the above post. Hope you found it useful. In case of any questions, feel free to comment below. Also, if you are keen on knowing about a specific topic, happy to explore your recommendations as well.
 
For any latest updates or posts on our website, you can follow us on LinkedIn. Look forward to connecting with you there.


Share this:
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments