'staff_2', 'requestData' => [ 'userId' => [ 'validation' => DataValidator::dataStoreId('user'), 'error' => ERRORS::INVALID_USER ] ] ]; } public function handler() { $userId = Controller::request('userId'); $user = User::getDataStore($userId); Response::respondSuccess([ 'name' => $user->name, 'email' => $user->email, 'signupDate' => $user->signupDate, 'tickets' => $user->sharedTicketList->toArray() ]); } }