src/Entities/Entity.php
public function getParentUri()
    {
        if ($this->getParentName()) {
            
            $func = $this->getParentName();
            if (! is_string($func)) {
                return;
            }
            $relat = $this->$func();
            $parentResourceName = $relat->getRelated()->getResourceName();
            
            $field = $relat->getForeignKey();
            
            if (! $this->$field/* || ! Request::is($parentResourceName . '/*')*/) {
                return Api::url();
            }
            
            return Api::url() . '/' . $parentResourceName . '/' . Api::encodeHashId($this->$field);
        }
        
        return Api::url();
    }
public function getParentUri()
    {
        if ($this->getParentName()) {
            
            $func = $this->getParentName();
            if (! is_string($func)) {
                return;
            }
            $relat = $this->$func();
            $parentResourceName = $relat->getRelated()->getResourceName();
            
            $field = $relat->getForeignKey();
            
            if (! $this->$field/* || ! Request::is($parentResourceName . '/*')*/) {
                return Api::url();
            }
            
            return Api::url() . '/' . $parentResourceName . '/' . Api::encodeHashId($this->$field);
        }
        
        return Api::url();
    }
Return parent URI

@return string