First part of rest client impl