跳到主要内容

步骤

方法与权限​

APIGETPOSTPUTPATCHDELETE
步骤列表管理员, 成员管理员---
步骤详情管理员, 成员--管理员管理员

获取步骤列表​

端点: /tables/step/list/{level}/{sid}/{serializer}/

参数: level (路径, 字符串)​

组织

参数: sid (路径, 字符串)​

组织 sid

参数: serializer (路径, 字符串)​

参数: token (头部, 字符串)​

参数: widget__sid (查询, 字符串)​

响应: 200​

# serializer = name
{
"page_size": 1,
"page_number": 1,
"page_count": 5,
"count": 5,
"next": "xxx",
"previous": null,
"add_permission": true,
"results": [
{
"sid": "xxx",
"name": "Create an experiment note"
}
]
}
# serializer = list
{
"page_size": 1,
"page_number": 1,
"page_count": 5,
"count": 5,
"next": "xxx",
"previous": null,
"add_permission": true,
"results": [
{
"sid": "xxx",
"name": "Create an experiment note",
"parent": null,
"redirect_to": null,
"color": "Grey",
"workflow": {
"sid": "xxx",
"name": "Plan an experiment",
"description": "This workflow describes what you need to do before start an experiment."
},
"table": {
"sid": "xxx",
"name": "experiments"
},
"change_permission": true
}
]
}
# serializer = detail
{
"page_size": 1,
"page_number": 1,
"page_count": 5,
"count": 5,
"next": "xxx",
"previous": null,
"add_permission": true,
"results": [
{
"sid": "xxx",
"table": {
"sid": "xxx",
"name": "experiments"
},
"workflow": {
"sid": "xxx",
"name": "Plan an experiment",
"description": "This workflow describes what you need to do before start an experiment."
},
"parent": null,
"name": "Create an experiment note",
"description": "Learn more at <a href='https://docs.labii.com/eln-and-lims/add-record' target='_blank'>here</a>",
"condition": null,
"protocol": null,
"redirect_to": null,
"color": "Grey",
"is_archived": false,
"updated_by": "xxx",
"date_updated": "2020-02-10T03:02:27.174030Z",
"date_created": "2020-02-10T03:02:27.172914Z",
"change_permission": true
}
]
}

创建步骤列表​

端点: /tables/step/list/{level}/{sid}/{serializer}/

参数: level (路径, 字符串)​

组织

参数: sid (路径, 字符串)​

组织 sid

参数: serializer (路径, 字符串)​

参数: token (头部, 字符串)​

参数: widget__sid (查询, 字符串)​

响应: 201​

{
"sid": "xxx",
"table": {
"sid": "xxx",
"name": "experiments"
},
"workflow": {
"sid": "xxx",
"name": "Plan an experiment",
"description": "This workflow describes what you need to do before start an experiment."
},
"parent": null,
"name": "Create an experiment note",
"description": "Learn more at <a href='https://docs.labii.com/eln-and-lims/add-record' target='_blank'>here</a>",
"condition": null,
"protocol": null,
"redirect_to": null,
"color": "Grey",
"is_archived": false,
"updated_by": "xxx",
"date_updated": "2020-02-10T03:02:27.174030Z",
"date_created": "2020-02-10T03:02:27.172914Z",
"change_permission": true
}

响应: 406​

Missing workflow__sid in get parameters
Wrong workflow sid - the provided workflow sid is not correct

获取步骤详情​

端点: /tables/step/detail/{sid}/

参数: sid (路径, 字符串)​

参数: token (头部, 字符串)​

响应: 200​

{
"sid": "xxx",
"table": {
"sid": "xxx",
"name": "experiments"
},
"workflow": {
"sid": "xxx",
"name": "Plan an experiment",
"description": "This workflow describes what you need to do before start an experiment."
},
"parent": null,
"name": "Create an experiment note",
"description": "Learn more at <a href='https://docs.labii.com/eln-and-lims/add-record' target='_blank'>here</a>",
"condition": null,
"protocol": null,
"redirect_to": null,
"color": "Grey",
"is_archived": false,
"updated_by": "xxx",
"date_updated": "2020-02-10T03:02:27.174030Z",
"date_created": "2020-02-10T03:02:27.172914Z",
"change_permission": true
}

修改步骤详情​

端点: /tables/step/detail/{sid}/

参数: sid (路径, 字符串)​

参数: token (头部, 字符串)​

响应: 200​

{
"sid": "xxx",
"table": {
"sid": "xxx",
"name": "experiments"
},
"workflow": {
"sid": "xxx",
"name": "Plan an experiment",
"description": "This workflow describes what you need to do before start an experiment."
},
"parent": null,
"name": "Create an experiment note",
"description": "Learn more at <a href='https://docs.labii.com/eln-and-lims/add-record' target='_blank'>here</a>",
"condition": null,
"protocol": null,
"redirect_to": null,
"color": "Grey",
"is_archived": false,
"updated_by": "xxx",
"date_updated": "2020-02-10T03:02:27.174030Z",
"date_created": "2020-02-10T03:02:27.172914Z",
"change_permission": true
}

删除步骤详情​

端点: /tables/step/detail/{sid}/

参数: sid (路径, 字符串)​

参数: token (头部, 字符串)​

响应: 204​

{}