# 获取单品文件内容

# 1. 获取单品自身的文件内容

https://file.freelog.com/exhibits/{exhibitId}/items/{itemId}
1

# 2. 获取单品的子文件内容

https://file.freelog.com/exhibits/{exhibitId}/items/{itemId}/{subFilePath}
1

# 3. 获取单品的依赖文件内容

https://file.freelog.com/exhibits/{exhibitId}/items/{itemId}/articles/{nid}
1

# 4. 获取单品的依赖的子文件内容

https://file.freelog.com/exhibits/{exhibitId}/items/{itemId}/articles/{nid}/{subFilePath}
1

# url传入参数说明:

参数 必选 类型及范围 说明
exhibitId 必选 string 展品ID
itemId 必选 string 单品ID
nid 可选 string 依赖的子作品对应的依赖树的id
subFilePath 可选 string 内部子文件相对path地址; 比如请求展品的子文件或者请求展品的依赖的子文件;

# 返回说明:

# 1.授权通过时直接响应文件内容

# 2.授权不通过时,响应对应的授权结果

返回值字段 字段类型 字段说明
itemId string 单品ID
referee int 做出授权结果的标的物服务类型(1:资源服务 2:展品服务 4:合集服务)
defaulterIdentityType int 授权不通过责任方(0:无 1:资源 2:节点 4:c端消费者 8:资源上游 128:未知)
authCode int 授权码
isAuth boolean 是否授权通过
errorMsg string 错误信息

# 返回示例

{
	"ret": 0,
	"errCode": 0,
	"errcode": 0,
	"msg": "success",
	"data": {
		"itemId": "b50de01d",
        "referee": 1,
		"defaulterIdentityType": 4,
		"authCode": 303,
		"isAuth": false,
		"errorMsg": "标的物未签约"
	}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14