具有 json:api 个相关链接的重复内容

Duplicated content with json:api related links

在 json:api 规范的 Resource Linkage section 中,我发现您可以使用 url 获取相关资源对象,例如 http://example.com/articles/1/author,参考 "the author of the article with id 1".

在站点完整示例中我们可以看到作者的 ID 为 9。

// ...
{
  "type": "articles",
  "id": "1",
  "attributes": {
    "title": "Rails is Omakase"
  },
  "relationships": {
    "author": {
      "links": {
        "self": "http://example.com/articles/1/relationships/author",
        "related": "http://example.com/articles/1/author"
      },
      "data": { "type": "people", "id": "9" }
    }
  },
  "links": {
    "self": "http://example.com/articles/1"
  }
}
// ...

所以,如果我理解它,我将能够用两个不同的 urls 请求相同的资源:

http://example.com/articles/1/author
http://example.com/authors/9

这样可以吗?
这不就可以考虑了duplicate content吗?

The article you have linked 谈论网站上下文中的重复内容。 JSON:API 规格是关于 API。网站通常是供人类阅读和使用的。 API 表示要使用的程序。该文章提出的 SEO 问题不适用于 API,因为 Google 等搜索引擎不关心 API 响应。他们可能关心基于 API 的数据获取构建的网站。该网站应具有独特的 URL 或 rel="canonical" 属性。