December 28, 2018 Product Developers Urban Malc
KumuluzEE Rest Client REST API MicroProfile Eclipse MicroProfile

Initial release of KumuluzEE Rest Client is here

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!

More details about this release can be found on GitHub.

Subscribe to our mailing list

Subscribe to our mailing list to get the latest news and updates.