code: 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();
      }
docs: Return parent URI
  
  @return string