add partial response support to REST API