Client interpreter backed by scalaj-http.

"org.julienrf" %% "endpoints-scalaj-client" % "0.15.0"

API documentation

The Endpoints interpreter fixes the Endpoint[A, B] type to a type that provide methods to invoke the endpoint synchronously or asynchronously.

Given the following endpoint definition:

val someResource: Endpoint[Int, String] =
  endpoint(get(path / "some-resource" / segment[Int]()), ok(textResponse))

It can be asynchronously invoked as follows:

val eventuallyString: Future[String] = someResource.callAsync(42)