A sample server client application which sends and receives EMF (Eclipse Modeling Framework) objects using JAX-RS. The server is a Spring Boot application which publishes Apache CXF remote services. The client demonstrates a very simple application which communicates with the server using Rest Client for MicroProfile.
The EMF objects are serialized to JSON using https://github.com/flaviodonze/emfjson-jackson.
Example of building a service proxy and receiving a simple EMF object "Code".
URI apiUri = new URI("http://localhost:8080/services/");
RestClientBuilder client = RestClientBuilder.newBuilder().register(CommunicationUtil.getProvider()).baseUri(apiUri);
NotificationDefinitionService service = client.build(NotificationDefinitionService.class);
Code code = service.getCode();