获取评测
GET/v1/reviews/{id}
返回一篇评测,以及其作品 ID 和它是否属于最有用的评测。
请求
curl -g "https://api.nogitsu.com/v1/reviews/{id}"参数
id路径必填
条目的 ID,为 UUID。
文本
响应
请求成功时返回 200 和以下 JSON:
workId文本 (uuid)isTopHelpfultrue 或 falsereview对象id文本 (uuid)author对象username文本displayName文本avatarUrl文本 (uri)可为 null
title文本可为 nullbody对象可为 nullblocks多种结构之一 列表选项 1
type文本允许的值paragraphchildren多种结构之一 列表选项 1
type任意值text任意值marks任意值
选项 2
type任意值href任意值children任意值
选项 3
type任意值username任意值
选项 4
type任意值spoilerId任意值children任意值
选项 5
type任意值
选项 2
type文本允许的值headingchildren多种结构之一 列表选项 1
type任意值text任意值marks任意值
选项 2
type任意值href任意值children任意值
选项 3
type任意值username任意值
选项 4
type任意值spoilerId任意值children任意值
选项 5
type任意值
选项 3
type文本允许的值quotechildrenRichTextBlock 列表
选项 4
type文本允许的值listisOrderedtrue 或 falseitemsRichTextBlock 列表 列表
选项 5
type文本允许的值codetext文本
bodyLength整数0 到 9007199254740991
hasSpoilertrue 或 falsespoilerUnit数字可为 null至少 0
sourceSpoiler对象可为 nullkind文本允许的值mangamanhwamanhuawebtoonnovelotherunit数字可为 null至少 0
pros文本 列表可为 nullcons文本 列表可为 nullimages对象 列表url文本 (uri)width整数0 到 9007199254740991
height整数0 到 9007199254740991
alt文本可为 nullvariantWidths整数 列表0 到 9007199254740991
language文本scoreHalfPoints整数可为 null1 到 20
categoryScores对象trackingStatus文本可为 null允许的值plannedcurrentcompletedpauseddroppedrewatchingprogressUnits数字可为 null至少 0
progressTotal整数可为 null0 到 9007199254740991
repeatCount整数0 到 9007199254740991
authorStats对象reviewCount整数0 到 9007199254740991
helpfulCount整数0 到 9007199254740991
helpfulCount整数0 到 9007199254740991
unhelpfulCount整数0 到 9007199254740991
replyCount整数0 到 9007199254740991
createdAt文本 (date-time)editedAt文本 (date-time)可为 null
错误
与所有操作一样,此操作在参数无效时可能返回 400,找不到内容时返回 404,请求过多时返回 429。所有错误的结构都相同。