According to Lagom documentation, we can define external service URI (like below) and can get it from ServiceLocator.
lagomUnmanagedServices in ThisBuild := Map("weather" -> "http://localhost:3333")
What is the simplest way to call the external REST API in Lagom?
I considered using WsClient in Lagom, but I didn't choose it.
Lagom includes only WsClient for Scala, therefore it provides result values as not java.util.concurrent.CompletionStage
but scala.concurrent.Future
.
It makes the pain to combine with other Lagom APIs like CompletionStage#doWithService.