protected function getContentLocation(Model $model, Resource $resource)
    {
        $query = http_build_query($resource->query);

        $content_location = "$this->url/$resource->name/"
            . $this->getPrimaryKey($model)
            . ($query !== '' ? '?' . $query : '');

        return $content_location;
    }