From the course: Spring: Spring Integration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Call a REST API using Spring Integration

Call a REST API using Spring Integration - Spring Tutorial

From the course: Spring: Spring Integration

Start my 1-month free trial

Call a REST API using Spring Integration

- [Instructor] Rest is a common HTTP based technique for serving an externally hosted application programming interface or API. Let us build a rest API connection end point together. We will initialize the lesson files for this lesson using get checkout 04_04B. For several code lessons now, we have relied on a Java util timer implementation embedded in one of our service classes in order to simulate an HTTP rest API call and response so that we could focus on learning other things. In this lesson, we will transform that mock setup into a real HTTP interaction backed by our own applications embedded tomcat web server which is provided by spring boot. Notice here in line 39 of our status monitor service, we have a timer task that ultimately puts a message onto an API input channel down here in line 52. This message makes it sway from there through the core application message pipeline that is specified in status monitor, dot…

Contents