Sample client to use REST