rest consumer for spring