mirror of https://github.com/halo-dev/halo
![]() #### What type of PR is this? /kind feature /area core /milestone 2.9.x #### What this PR does / why we need it: Currently, we only support restoring by uploading backup file. Downloading and uploading larger backup files can be cumbersome for users. This PR supports restoring with downloadable URL or backup name as well. #### Special notes for your reviewer: ```bash # Replace ${BACKUP_NAME} by yourself. curl -u admin:admin 'http://localhost:8090/apis/api.console.migration.halo.run/v1alpha1/restorations' \ -H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundary3Al7pC6AbBNfB1js' \ --data-raw $'------WebKitFormBoundary3Al7pC6AbBNfB1js\r\nContent-Disposition: form-data; name="backupName"\r\n\r\n${BACKUP_NAME}\r\n------WebKitFormBoundary3Al7pC6AbBNfB1js--\r\n' ``` ```bash # Replace ${DOWNLOAD_LINK} by yourself. curl -u admin:admin 'http://localhost:8090/apis/api.console.migration.halo.run/v1alpha1/restorations' \ -H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundarytv6cqgmANkCpSuZm' \ --data-raw $'------WebKitFormBoundarytv6cqgmANkCpSuZm\r\nContent-Disposition: form-data; name="downloadUrl"\r\n\r\n${DOWNLOAD_LINK}\r\n------WebKitFormBoundarytv6cqgmANkCpSuZm--\r\n' ``` #### Does this PR introduce a user-facing change? ```release-note 新增提供下载链接或者备份名进行系统恢复的功能。 ``` |
||
---|---|---|
.. | ||
src | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.prettierrc.js | ||
README.md | ||
build.config.ts | ||
openapitools.json | ||
package.json | ||
tsconfig.json |
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