添加依赖
支持单个或批量添加,名称与已有依赖重复或为平台保留依赖时添加失败,添加成功的依赖处于未安装状态。
授权
Token api-token<token>
32位令牌,在控制面板《个人设置 - 令牌管理》页面获取
位置: header
请求主体
application/json
TypeScript 定义
在 TypeScript 中使用 request body 类型。
添加依赖请求体
响应主体
application/json
curl -X POST "https://example.com/dependency/v1/create" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "ecosystem": "npm" }'{ "id": 0, "name": "string", "ecosystem": "npm", "installed_ver": "string", "status": 0, "last_error": "string", "remark": "string", "create_time": "2019-08-24T14:15:22Z", "update_time": "2019-08-24T14:15:22Z"}
