# 查看展品详情
# 调用方式: GET
# 接口地址:
url1: https://api.freelog.com/v2/presentables/{presentableId}
url2: https://api.freelog.com/v2/presentables/detail?nodeId={nodeId}
1
2
2
# url1传入参数说明:
参数 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
presentableId | 必选 | string | 展品Id |
projection | 可选 | string | 指定返回的字段,多个用逗号分隔 |
isLoadVersionProperty | 可选 | int | 是否响应展品版本属性 |
isLoadPolicyInfo | 可选 | int | 是否加载策略信息 |
isTranslate | 可选 | int | 是否翻译策略(需要主动加载策略) 0:否 1:是 |
isLoadCustomPropertyDescriptors | 可选 | int | 是否加载自定义属性信息 |
isLoadResourceDetailInfo | 可选 | int | 是否加载资源详细信息(额外查询了资源的封面,标签,简介等) |
isLoadResourceVersionInfo | 可选 | int | 是否加载资源版本信息(额外查询了资源版本的描述,创建日期,更新日期等) |
isLoadAuthContract | 可选 | int | 是否加载资源的授权合约信息(额外查询了授权合约,排除的合约等信息) |
# url2传入参数说明:(resourceId,resourceName,presentableName必选其一)
参数 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
nodeId | 必选 | int | 节点ID |
resourceId | 可选 | string | 资源ID |
resourceName | 可选 | string | 资源名称 |
presentableName | 可选 | string | 展品名称 |
projection | 可选 | string | 指定返回的字段,多个用逗号分隔 |
isLoadVersionProperty | 可选 | bool | 是否响应展品版本属性 |
isLoadPolicyInfo | 可选 | bool | 是否加载策略信息 |
isTranslate | 可选 | int | 是否翻译策略(需要主动加载策略) 0:否 1:是 |
isLoadCustomPropertyDescriptors | 可选 | int | 是否加载自定义属性信息 |
isLoadResourceDetailInfo | 可选 | int | 是否加载资源详细信息(额外查询了资源的封面,标签,简介等) |
isLoadResourceVersionInfo | 可选 | int | 是否加载资源版本信息(额外查询了资源版本的描述,创建日期,更新日期等) |
isLoadAuthContract | 可选 | int | 是否加载资源的授权合约信息(额外查询了授权合约,排除的合约等信息) |
# 返回说明:
返回值字段 | 字段类型 | 字段说明 |
---|---|---|
presentableId | string | 展示方案ID |
presentableName | string | 展示方案名称,节点内唯一 |
presentableTitle | string | 展示方案标题,用于展示 |
tags | string[] | 用户定义的tags |
intro | string | presentable简介 |
onlineStatus | int | 上线状态 0:下线 1:上线 |
userId | int | 创建方案的用户ID |
nodeId | int | 节点ID |
resolveResources | object[] | 资源以及其上抛的解决方式 |
** resourceId | string | 解决的资源ID |
** resourceName | string | 解决的资源名称 |
policies | object[] | 对外授权的策略组 |
** policyId | string | 策略ID |
** policyName | string | 策略名称 |
** status | int | 策略状态 0:下线(未启用) 1:上线(启用) |
resourceInfo | object | presentable引用的资源基础信息 |
** resourceId | string | 资源ID |
** resourceName | string | 资源名称 |
** resourceType | string | 资源类型 |
version | string | 展品的版本,同引用的资源版本号 |
createDate | date | 创建日期 |
resolveResourceContracts | object[] | 展品直接授权相关的合约信息;只有参数isLoadAuthContract=1时才会追加此数据 |
**resourceId | string | 解决的资源ID |
**resourceName | string | 解决的资源名称 |
**validContracts | object[] | 使用中的授权合约信息 |
**excludedContracts | object[] | 被排除的授权合约信息 |
**authExcludedItems | object[] | 解决的资源关联的排除规则 |
# 返回示例
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": {
"presentableTitle": "Exhibit001",
"tags": [],
"coverImages": [
"https://image.freelog.com/preview-image/6c1436dd2b17045aaabe4f4996903d77b5a088b0"
],
"onlineStatus": 0,
"autoUpdateStatus": 0,
"nodeSideAuthStatus": 1,
"resourceSideAuthStatus": 1,
"resourceDependencyFreezeStatus": 1,
"status": 0,
"intro": "",
"isTheme": 0,
"authStatus": 0,
"presentableName": "Exhibit001",
"version": "0.0.1",
"resolveResources": [{
"resourceId": "5f31146b1bbe52002fc8cbcb",
"resourceName": "12345676789/havePolice001",
"contracts": []
}],
"policies": [],
"nodeId": 80000004,
"userId": 50028,
"resourceInfo": {
"resourceType": [
"图片"
],
"resourceOwnerId": 50028,
"resourceId": "5f31146b1bbe52002fc8cbcb",
"resourceName": "12345676789/havePolice001",
"resourceTypeCode": "RT005",
"subjectType": 1
},
"createDate": "2020-10-15T09:07:02.268Z",
"updateDate": "2024-11-19T03:34:32.897Z",
"authExcludedItems": [],
"presentableId": "5f8811368d5a320034cb61b1",
"versionProperty": {
"mime": "image/jpeg",
"fileSize": 686579,
"imageWidth": "3840",
"imageHeight": "2160"
},
"presentableRewriteProperty": [],
"resolveResourceContracts": [{
"resourceId": "5f31146b1bbe52002fc8cbcb",
"resourceName": "12345676789/havePolice001",
"validContracts": [{
"contractId": "5f8811367e3e67002f8d1cd8",
"fsmCurrentState": "initial",
"fsmCurrentStateColors": [],
"fsmRunningStatus": 4,
"authStatus": 1,
"status": 0,
"licensorId": "5f31146b1bbe52002fc8cbcb",
"licensorName": "12345676789/havePolice001",
"licensorOwnerId": 50028,
"licensorOwnerName": "12345676789",
"licenseeId": "80000004",
"licenseeName": "节点05",
"licenseeOwnerId": 50028,
"licenseeOwnerName": "12345676789",
"licenseeIdentityType": 2,
"subjectId": "5f31146b1bbe52002fc8cbcb",
"subjectName": "12345676789/havePolice001",
"subjectType": 1,
"contractName": "我的策略",
"policyId": "6546452dfffd8f249d83bb8f6f1897e8",
"createDate": "2020-10-15T09:07:02.054Z",
"fsmDeclarations": {
},
"updateDate": "2021-01-04T08:23:01.802Z",
"licenseeSubjectKey": "80000004_5f31146b1bbe52002fc8cbcb",
"isDefault": false,
"isAuth": true,
"isTestAuth": false,
"policyInfo": {
"status": 0,
"subjectType": 1,
"policyId": "6546452dfffd8f249d83bb8f6f1897e8",
"policyText": "for public:\n initial:\n active\n terminate",
"fsmDescriptionInfo": {
"initial": {
"authorization": [
"active"
],
"isInitial": true,
"isAuth": true,
"isTestAuth": true,
"transitions": []
}
},
"createDate": "2021-01-04T08:18:05.297Z",
"updateDate": "2022-09-19T08:13:07.631Z",
"translateInfo": {
"content": "公开(所有缔约方可签约)\n\n初始状态:\n 停止接收事件\n\n"
}
}
}],
"excludedContracts": [],
"authExcludedItems": []
}]
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112