列出引用方
GET
列出在 content 中引用这个实体的版本,目标按实体匹配,引用它的任何一个版本都算,见 ENTITY-7。只返回直接的引用方,按引用方的 VersionId 升序分页。目标实体已被删除时照常列出,见 HISTORY-8。
entityId*string目标实体的 EntityId。
Format
uuidversions?stringcurrent 只返回当前版本仍引用目标的实体,每个实体一个版本;all 返回每一个引用过目标的版本。
Default
"current"Value in
"current""all"limit?integer一页最多返回的引用方版本数。
Range
1 <= value <= 1000Default
100after?string上一页响应中的 next。省略时从第一页开始。
一页引用方。
application/json- response
referrers*array<>next*|下一页的游标,作为 after 传入。没有下一页时为 null。
curl -X GET 'https://example.com/api/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08/referrers'Example Response
{ "referrers": [ { "version": { "entityId": "156e622c-6cdf-4c27-9bc9-2f2db69919f5", "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7", "previousVersionId": "de7aac6a-ef9d-4693-9e70-ffd12c3baa44", "category": "observation", "schemaVersionId": "6856dbc6-454b-45a1-a35b-52f2061b8dca", "recordedAt": "2019-08-24T14:15:22Z", "content": { "observerVersionId": "3a060ba7-4648-481d-8ee6-147a347a183b", "contentVersionId": "a5a27b60-1951-4448-8e45-5c887f120534", "inputSetVersionId": "0ffd8fea-521d-4052-adc0-e732666ff823", "startAt": "2019-08-24T14:15:22Z", "endAt": "2019-08-24T14:15:22Z", "timeZone": "string" } }, "references": [ { "path": "string", "targetVersionId": "6daa52ce-3028-4ff3-8550-f1d327ca3ca2" } ] } ], "next": "string"}