src/User/Controller/RestController.php
public function getList()
	{
		$this->getResponse()
			->setStatusCode(Response::STATUS_CODE_200);
		
		$params = array_merge_recursive(
			$this->params()->fromQuery(), 
			$this->params()->fromRoute()
		);
		$data = $this->getModel()->getList($params, $this->getServiceLocator());
		
		return new JsonModel($data);
	}
public function getList()
	{
		$this->getResponse()
			->setStatusCode(Response::STATUS_CODE_200);
		
		$params = array_merge_recursive(
			$this->params()->fromQuery(), 
			$this->params()->fromRoute()
		);
		$data = $this->getModel()->getList($params, $this->getServiceLocator());
		
		return new JsonModel($data);
	}
Respond to HTTP GET method without :id
@see \Zend\Mvc\Controller\AbstractRestfulController::getList()