mirror of https://github.com/halo-dev/halo
![]() #### What type of PR is this? /kind feature /area core /area console /milestone 2.6.x /kind api-change #### What this PR does / why we need it: 支持通过 URI 远程安装和升级插件 how to test it? 1. 测试插件安装 ```shell curl -u admin:admin -X POST http://localhost:8090/apis/api.console.halo.run/v1alpha1/plugins/-/install-from-uri --data '{ "uri": "https://halo.run/apis/api.store.halo.run/v1alpha1/applications/app-KhIVw/releases/app-release-canxF/download/app-release-canxF-znFre" }' ``` 2. 测试插件升级 ```shell curl -u admin:admin -X POST http://localhost:8090/apis/api.console.halo.run/v1alpha1/plugins/PluginFeed/upgrade-from-uri --data '{ "uri": "https://halo.run/apis/api.store.halo.run/v1alpha1/applications/app-KhIVw/releases/app-release-canxF/download/app-release-canxF-znFre" }' ``` #### Which issue(s) this PR fixes: Fixes #2292 #### Does this PR introduce a user-facing change? ```release-note 支持通过 URI 远程安装和升级插件 ``` |
||
---|---|---|
.. | ||
src | ||
build.gradle |