This video shows how to make REST APIs with xhtml that demonstrates independent evolution and decoupled implementation of the client and server:
The code for creating the client is available here:
https://github.com/cimlabs/hypermedia-client-java
The code for creating the client is available here:
https://github.com/cimlabs/hypermedia-client-java