@urbim urbim released this Dec 28, 2018 · 1 commit to master since this release

Assets 2

We're happy to announce the first release of KumuluzEE Rest Client. This release implements the MicroProfile Rest Client 1.0.1 specification.

KumuluzEE MicroProfile Rest Client supports generation of rest clients from simple definitions. APIs are defined using interfaces and well-known JAX-RS annotations. Generated rest clients provide a type-safe way to invoke defined APIs and support a wide variety of providers which allow fine-grained but natural configuration at various stages of requests.

Example of a simple API definition:

@Path("orders")
@RegisterRestClient
@Dependent
public interface SimpleApi {

	@GET
	@Path("{id}")
	Order getById(@PathParam("id") long id);

}

The API invoker can then be injected using CDI and used to make requests to the described API:

@Inject
@RestClient
SimpleApi simpleApi;

public void processOrder() {
    Order o = simpleApi.getById(1);

    // ...
}

Sample showcasing various features is already available at KumuluzEE Rest Client sample.

We are happy to bring this extension into your hands!