halo/console/packages/api-client
guqing 170cf4e412
feat: add the ability to install themes remotely via URI (#3939)
#### What type of PR is this?
/kind improvement
/area core
/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/themes/-/install-from-uri --data '{
  "uri": "https://halo.run/apis/api.store.halo.run/v1alpha1/applications/app-eiTyL/releases/app-release-QSyjc/download/app-release-QSyjc-JOSOB"
}'
```
2. 测试主题升级
```shell
curl -u admin:admin -X POST http://localhost:8090/apis/api.console.halo.run/v1alpha1/themes/guqing-higan/upgrade-from-uri --data '{
  "uri": "https://halo.run/apis/api.store.halo.run/v1alpha1/applications/app-eiTyL/releases/app-release-QSyjc/download/app-release-QSyjc-JOSOB"
}'
```
#### Which issue(s) this PR fixes:

Fixes #2291

#### Does this PR introduce a user-facing change?
```release-note
支持通过 URI 远程安装和升级主题
```

---------
Co-authored-by: Ryan Wang <i@ryanc.cc>
2023-05-19 02:10:24 +00:00
..
src feat: add the ability to install themes remotely via URI (#3939) 2023-05-19 02:10:24 +00:00
.eslintignore Move root to console 2023-03-02 15:49:22 +08:00
.eslintrc.js chore: solving the issue of generating API client causing unnecessary diffs (#3465) 2023-03-07 14:14:14 +00:00
.gitignore Move root to console 2023-03-02 15:49:22 +08:00
.prettierrc.js chore: solving the issue of generating API client causing unnecessary diffs (#3465) 2023-03-07 14:14:14 +00:00
README.md Move root to console 2023-03-02 15:49:22 +08:00
build.config.ts chore: solving the issue of generating API client causing unnecessary diffs (#3465) 2023-03-07 14:14:14 +00:00
openapitools.json Move root to console 2023-03-02 15:49:22 +08:00
package.json chore: bump up version to 2.5.1 (#3874) 2023-04-28 07:56:19 +00:00
tsconfig.json Move root to console 2023-03-02 15:49:22 +08:00

README.md

@halo-dev/api-client

Halo 2.0 的 JavaScript API 客户端请求库。使用 OpenAPI Generator 生成。

开发环境

pnpm install
# 根据 OpenAPI 3.0 生成类型和网络请求的代码,此步骤需要启动 Halo 2.0 后端。
pnpm gen
pnpm build

发布版本

pnpm release