跳到主要内容

获取剧透评测的全文

GET/v1/reviews/{id}/body

返回因含有剧透而在列表中隐藏的评测的正文、优点、缺点和图片。

请求

Shell
curl -g "https://api.nogitsu.com/v1/reviews/{id}/body"

参数

  • id

    路径必填

    条目的 ID,为 UUID。

    文本

响应

请求成功时返回 200 和以下 JSON:

  • body对象
    • blocks多种结构之一 列表
      1. 选项 1

        • type文本
          允许的值paragraph
        • children多种结构之一 列表
          1. 选项 1

            • type文本
              允许的值text
            • text文本
            • marks任意值 列表
          2. 选项 2

            • type文本
              允许的值link
            • href文本 (uri)
            • children任意值 列表
          3. 选项 3

            • type文本
              允许的值mention
            • username文本
          4. 选项 4

            • type文本
              允许的值spoiler
            • spoilerId文本
            • children任意值 列表可为 null
          5. 选项 5

            • type文本
              允许的值break
      2. 选项 2

        • type文本
          允许的值heading
        • children多种结构之一 列表
          1. 选项 1

            • type文本
              允许的值text
            • text文本
            • marks任意值 列表
          2. 选项 2

            • type文本
              允许的值link
            • href文本 (uri)
            • children任意值 列表
          3. 选项 3

            • type文本
              允许的值mention
            • username文本
          4. 选项 4

            • type文本
              允许的值spoiler
            • spoilerId文本
            • children任意值 列表可为 null
          5. 选项 5

            • type文本
              允许的值break
      3. 选项 3

        • type文本
          允许的值quote
        • childrenRichTextBlock 列表
      4. 选项 4

        • type文本
          允许的值list
        • isOrderedtrue 或 false
        • itemsRichTextBlock 列表 列表
      5. 选项 5

        • type文本
          允许的值code
        • text文本
  • pros文本 列表
  • cons文本 列表
  • images对象 列表
    • url文本 (uri)
    • width整数

      0 到 9007199254740991

    • height整数

      0 到 9007199254740991

    • alt文本可为 null
    • variantWidths整数 列表

      0 到 9007199254740991

错误

与所有操作一样,此操作在参数无效时可能返回 400,找不到内容时返回 404,请求过多时返回 429。所有错误的结构都相同。

了解错误