adding rest service for Record