2282285  bulk docs endpoint

Implementation of bulk docs endpoint.
Shouldn't the data always be an array? If it's not an array the test must fail.