Invoking REST APIs from Java Microservices

Previously, I blogged about how to implement and document REST APIs in JavaEE applications with Eclipse MicroProfile. In this article, I describe the inverse scenario — how services can invoke other services via REST APIs over HTTP.

MicroProfile comes with a REST Client which defines a type-safe client programming model. The REST Client makes it easier to convert between the JSON data and Java objects in both directions.