开发者 / API
所有请求需携带 Authorization: Bearer <token>
统一响应结构
// 普通响应
{ "code": 200, "msg": "操作成功", "data": { ... } }
// 分页响应
{ "code": 200, "msg": "查询成功", "total": 1234, "rows": [ ... ] }主要接口
GET
/sidebarTree/list获取树状节点POST
/sidebarTree新增子节点GET
/phenotypeFile/list分页查询表型文件POST
/phenotypeFile/upload上传 CSV 表型文件GET
/phenotypeFile/preview/{id}预览文件内容POST
/picture/upload批量上传节点图片POST
/analysis/trait性状分析任务BrAPI 兼容
平台接口兼容 Breeding API(BrAPI)v2 规范,试验、材料、性状与观测值可通过标准 BrAPI 端点访问,便于与外部育种信息系统互通。
Python SDK
pip install crop-phenotype from crop_phenotype import Client client = Client(token="<token>") files = client.phenotype_files.list(node_id=12)
R package
install.packages("cropPhenotype")
library(cropPhenotype)
con <- cp_connect(token = "<token>")
df <- cp_files(con, node_id = 12)