我可以通过 Content server(16.0.3) REST Api 上传文件或创建节点(POST: api/v1/nodes)
。但是如何在将文件上传到 opentext 内容服务器时传递类别属性值..
因为根据DeveloperGuide,我只能传递 3 个参数
type,parent_id,name
我可以通过 Content server(16.0.3) REST Api 上传文件或创建节点(POST: api/v1/nodes)
。但是如何在将文件上传到 opentext 内容服务器时传递类别属性值..
因为根据DeveloperGuide,我只能传递 3 个参数
type,parent_id,name
要将类别添加到节点,需要在 Json 格式中传递具有类别、类别属性值的角色。例如节点 (20589) 具有名称为 BillingCat(42069) 的类别包含 ReferenceID (42069_2) 然后传递参数如下
type: 144, parent_id: 20589, name: file.name, roles: { categories: { { '42069': { // category (42069) '42069_2': 'ABC23' //attribute value } } }
看起来您必须在创建节点后发布第二个帖子:POST api/v1/nodes/{id}/categories
希望这可以帮助