src/Api/Url.php
public function getRelatedUrl(string $type, $id, string $field, array $params = []): string
    {
        return $this->url([$type, $id, $field], $params);
    }
public function getRelatedUrl(string $type, $id, string $field, array $params = []): string
    {
        return $this->url([$type, $id, $field], $params);
    }
Get the URI for a related resource.

@param string $type
@param mixed $id
@param string $field
@param array $params
@return string