# 查看资源版本草稿
# 调用方式: GET
# 接口地址:
https://api.freelog.com/v2/resources/{resourceId}/versions/drafts
1
# 返回说明:
| 返回值字段 | 字段类型 | 字段说明 | 
|---|---|---|
| resourceId | string | 资源ID | 
| resourceType | string | 资源类型[[详见附表]][资源类型] | 
| userId | int | 用户ID | 
| description | string | 资源描述信息 | 
| version | string | 版本号 | 
| fileSha1 | string | 资源sha1值 | 
| dependencies | object[] | 资源依赖信息 | 
| **resourceId | string | 依赖的资源ID | 
| **resourceName | string | 依赖的资源名称 | 
| **versionRange | string | 依赖的资源版本范围 | 
| **versionRangeType | string | 版本范围输入方式 | 
| upcastResources | object[] | 真实上抛资源列表,资源的基础上抛子集 | 
| ** resourceId | string | 上抛资源ID | 
| ** resourceName | string | 上抛资源名称 | 
| resolveResources | object[] | 版本解决的依赖以及上抛 | 
| ** resourceId | string | 解决的资源ID | 
| ** contracts | object[] | 解决所用的合同信息 | 
| **** policyId | string | 策略ID | 
| customPropertyDescriptors | object[] | 自定义属性描述器 | 
| ** key | string | 自定义属性名称 | 
| ** defaultValue | string | 自定义属性对应的值 | 
| ** type | string | 属性类型(editableText:可编辑文本,readonlyText:只读文本,radio:单选,checkbox:多选,select:下拉选项) | 
| ** candidateItems | string[] | 选项列表,单选,多选,下拉选择时需要提供选项 | 
| ** remark | string | 字段说明 | 
| createDate | date | 创建日期 | 
# 示例
{
    "ret": 0,
    "errcode": 0,
    "msg": "success",
    "data": {
        "version": "3.0.1",
        "fileSha1": "",
        "description": "版本描述",
        "status": 0,
        "resourceId": "5ee3288b32f1a8439c207aa2",
        "userId": 50021,
        "resourceType": "text",
        "dependencies": [
            {
                "versionRangeType": 2,
                "resourceId": "5ef081b8fb172026e434e2fa",
                "versionRange": "^1.0.0",
                "resourceName": "yuliang/my-first-resource4"
            }
        ],
        "resolveResources": [
            {
                "contracts": [
                    {
                        "policyId": "8cefe2f1dcc6dd0bdaadac946cb63dbc"
                    }
                ],
                "resourceId": "5ef081b8fb172026e434e2fa",
                "resourceName": "yuliang/my-first-resource4"
            }
        ],
        "upcastResources": [],
        "customPropertyDescriptors": [
            {
                "candidateItems": [],
                "remark": "名称",
                "key": "name",
                "defaultValue": "1",
                "type": "editableText"
            }
        ],
        "createDate": "2020-07-22T03:24:18.386Z",
        "updateDate": "2020-07-22T03:36:19.108Z"
    }
}
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
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