Add rest read functionality