a basic spring-rest (json based) example implementation.