列出组件库版本
GET /canvas/v1/canvases/{canvas_id}/library_versions
Read the release history of a library canvas, newest first, including each version’s description and what it added, changed or removed. Supply a canvas_id of a canvas that has been published at least once; a canvas that never was answers NOT_A_LIBRARY. limit is 1–100 and defaults to 30; pass next_cursor as cursor until it is null. Library versions are never pruned. Listing does not change the canvas. Available only to organizations where the canvas-libraries feature is enabled.
支持状态: supported
参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| canvas_id | path | string | true | Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted. |
| limit | query | integer | false | Maximum library versions to return, from 1 to 100 inclusive; omission uses 30. |
| cursor | query | string | false | Copy next_cursor from the preceding page to continue toward older library versions; omit for the first page. |
响应
HTTP 200
Published library versions ordered newest first, and the continuation cursor.
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| versions | array<object> | Published library versions, ordered from highest version to lowest. |
| versions[].version | string | Library version number, counting from 1. |
| versions[].canvas_version | string | The canvas version this library version was taken from. |
| versions[].description | string | Release note given at publish time; empty when none was given. |
| versions[].actor | object | Principal that published this version, resolved from the authenticated caller. |
| versions[].published_at | string | ISO 8601 time at which this version was published. |
| versions[].component_count | integer | Number of components in this version, not counting removed ones. |
| versions[].added | array<object> | Components new in this version. |
| versions[].changed | array<object> | Components whose content changed in this version. |
| versions[].removed | array<object> | Components removed in this version. |
| next_cursor | string | null | Continuation token to pass as cursor to read older versions; null marks the final page. |