/** * _isNestedResource - looks at the parent association to determine if the api parameters * indicate a nested resource. * * These are both examples of nested resources * * ie) http://example.com/users/1/accounts * ie) http://example.com/users/1/accounts/1 * * @return boolean * @codeCoverageIgnore */ protected function isNestedResource() { $parent_association = $this->requestContainer->getParentAssociation(); if (empty($parent_association) || is_null($parent_association)) { return false; } return true; }