add rest configuration