JS插件管理
从注册表安装插件
Changed on从注册表中的 download_url 下载 ZIP 并安装插件。如果 entry_path 已存在且属于同一作者,则自动走更新路径。匿名下载支持 GitHub 加速代理;携带 Token 的下载始终绕过加速代理,避免凭据泄漏。可选传入 token 字段用于从需要认证的私有源下载;若未提供 token 但提供了 source_url,后端会自动从 plugin_registries 配置解析该源存储的 token。 若 entry_path 已被本地一个不同作者的插件占用,返回 409 且不做任何写入(不落盘、不动 static 目录、不改数据库)。前端应向用户说明会替换原插件后,带 overwrite=true 重发本请求。
post/jsplugins/registry/install
Request
- Base URL: https://localhost:58091/api/v1
- URL: https://localhost:58091/api/v1/jsplugins/registry/install
- Auth: API key in header Authorization
Request body
Response
安装结果(更新已有插件)
Changes
- info
added the non-success response with the status
- info