listCatalogProposals
编辑提案历史
已提交的提案,最新在前。proposer_uid=+state=merged 且 include_total=true 即按贡献者的计数。本面不下发 patch 与裁决备注。需要应用密钥。
/v2/catalog/proposalscatalog:readAuthorization: Bearer nmk_live_…(v2 应用密钥,门户自助铸造,无需申请)参数
| 参数 | 类型 | 位置 | 说明 |
|---|---|---|---|
cursor | string | query | 来自先前 next_cursor 的不透明 keyset cursor。必须以 cur_ 开头。 |
limit | string | query | 页大小 1-100,缺省 20。超过 100 为 400 LIMIT_TOO_LARGE,不钳制。 |
view | string | query | basic(默认)或 full。封闭词表。 |
include | string | query | 逗号分隔的块。本面唯一 token 为 amendments。未知 token 返回 400 UNKNOWN_INCLUDE。 |
fields | string | query | view/include 之后逗号分隔的顶层键。未知 token 返回 400 UNKNOWN_FIELD。object 与 id 始终保留。 |
ids | string | query | 逗号分隔的提案 id,最多 100 个。批量车道:无分页。 |
include_total | string | query | true 则包含 total。仅 true 或 false。 |
sort | string | query | filed_desc 是唯一键。封闭词表。 |
object | string | query | 封闭族筛选:work、company、character、release、tag、engine、series。 |
entity_id | string | query | 某一实体的 catalog id。需要 object=。 |
site | string | query | 租户键。开放词表;未知值匹配不到任何内容。 |
proposer_uid | string | query | 认领站自己的提案者用户 id。不是 catalog id。 |
state | string | query | 封闭:open、merged、declined、withdrawn。 |
响应
facetsmap<string, object[]>具名 facet 桶。仅在请求 facets= 时出现。
«key»object[]可空
itemsobject[]必填本页成员。空数组,从不为 null。
amendmentsobject[]仅当 include=amendments 时出现。没有则为空数组。
base_revision_seqintegerint64 必填本提案写就时所对照的修订 seq。
created_atstringdate-time 必填RFC 3339 UTC。
decided_atstringdate-time 必填 可空RFC 3339 UTC。仍开放时为 null。
decided_by_uidstring必填 可空认领站自己的裁决者用户 id。仍开放时为 null。
effective_patchmap<string, object>仅当 include=patch 时出现。把每条修正都折叠进去之后的 patch;这是合入时会写入的内容。
entity_idstring必填目标 catalog id。
entity_typestring必填编辑引擎类型,例如 catalog.work。不得用作判别条件。
idstring必填提案 id。
notestring必填提案人自己写的摘要。不得用作判别条件。
objectstring必填类型判别字段。恒为 proposal。
枚举proposalpatchmap<string, object>仅当 include=patch 时出现;该块只由 me 面与 moderation 面下发。字段键到拟议值。
proposer_uidstring必填认领站自己的提案者用户 id。不是 catalog id。
sitestring必填本提案提交时所在的租户。开放词表;不得用作判别条件。
statestring必填提案生命周期状态。
枚举openmergeddeclinedwithdrawntarget_objectstring必填本提案所针对实体的族。
枚举workcompanycharacterreleasetagengineseriesupdated_atstringdate-time 必填RFC 3339 UTC。
missingstring[]已请求但不可见的 ids。仅出现在 ids=/refs= 批量车道。
next_cursorstring不透明 keyset cursor。末页省略。
objectstring必填类型判别字段。恒为 list。
枚举listtotalintegerint64仅当 include_total=true 时出现。与 items 同一可见性闸。
请求示例
curl "https://api.nextmoe.dev/v2/catalog/proposals" \
-H "Authorization: Bearer nmk_live_<YOUR_KEY>"