src/User/Controller/RestController.php
public function get($id)
	{
		$this->getResponse()
			->setStatusCode(Response::STATUS_CODE_200);
		
		$userService = $this->getServiceLocator()->get('user.service.user');
		
		try {
			$data = $userService->get($id);
    	} catch(\Exception $e) {
    		$this->getResponse()
    			->setStatusCode(Response::STATUS_CODE_500);
			$data = $e->getMessage();
    	}
		
		return new JsonModel(array(
			'data' => $data
		));
	}
public function get($id)
	{
		$this->getResponse()
			->setStatusCode(Response::STATUS_CODE_200);
		
		$userService = $this->getServiceLocator()->get('user.service.user');
		
		try {
			$data = $userService->get($id);
    	} catch(\Exception $e) {
    		$this->getResponse()
    			->setStatusCode(Response::STATUS_CODE_500);
			$data = $e->getMessage();
    	}
		
		return new JsonModel(array(
			'data' => $data
		));
	}
Respond to HTTP GET method with :id
@see \Zend\Mvc\Controller\AbstractRestfulController::getList()