GET /nodes/{nodeId}/renditions
基本信息
Note: 该端点在Alfresco 5.2和更高版本中可用。
获取文件nodeId的每个renditions的renditions信息列表,包括renditions ID。
返回的每个renditions都有一个状态(status):CREATED表示可以查看或下载,NOT_CREATED表示可以请求该renditions。
您可以使用where参数按状态(status)过滤返回的演绎。 例如,以下where子句仅返回CREATED再现:
(status='CREATED')
请求方式: GET
请求API: / nodes / {nodeId} / renditions
响应等级(状态200)
成功回应
{ "list": { "pagination": { "count": 0, "hasMoreItems": true, "totalItems": 0, "skipCount": 0, "maxItems": 0 }, "entries": [ { "entry": { "id": "string", "content": { "mimeType": "string", "mimeTypeName": "string", "sizeInBytes": 0, "encoding": "string" }, "status": "CREATED" } } ] } }
响应内容类型 applicaiton/json
Query参数
名称 | 类型 | 是否必填 | 示例值 | 描述 |
where | string | 否 | 通过使用谓词来限制返回的对象的一个字符串。 |
Path参数
名称 | 类型 | 是否必填 | 示例值 | 描述 |
nodeId | string | 是 | 节点的标识符。 |
错误信息描述
状态码 | 原因 |
400 | 无效的参数:nodeId不是有效的renditions,不是文件或where无效 |
401 | 验证失败 |
403 | 当前用户无权访问nodeId |
404 | nodeId不存在 |
default | 意外错误 |
返回结果示例
{ "error": { "errorKey": "string", "statusCode": 0, "briefSummary": "string", "stackTrace": "string", "descriptionURL": "string", "logId": "string" } }