/** * @return \Illuminate\Http\Response */ public function index() { $cursor = $this->repository->collection($this->collectionHelper->currentPosition(), $this->collectionHelper->pageSize(), $this->collectionHelper->query($this->transformer)); return $this->api->collection($cursor, $this->transformer); }