Updated Rest to support Batch Rest API