feat(release):完成双 release 运维闭环
bat-rust / Build and test Rust (push) Canceled after 0s
bat-rust / Build and test Go API (push) Canceled after 0s

This commit is contained in:
2026-09-12 11:08:04 +08:00
parent 8a77502272
commit 8d57a63697
27 changed files with 3635 additions and 222 deletions
+73 -1
View File
@@ -72,6 +72,52 @@ paths:
responses:
"200":
description: Release summary.
/v1/releases:
get:
summary: Rust-owned official and localized release history
parameters:
- name: channel
in: query
schema:
type: string
enum: [official, localized]
responses:
"200":
description: Release history and manifest/artifact integrity summaries.
"503":
description: Rust bat release backend is unavailable.
/v1/distribution:
get:
summary: Select a verified official or localized release for distribution
parameters:
- name: channel
in: query
schema:
type: string
enum: [official, localized]
default: official
- name: release_id
in: query
schema:
type: string
- name: offset
in: query
schema:
type: integer
minimum: 0
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 1000
responses:
"200":
description: Rust-verified selected release and resource manifest page.
"409":
description: Selected release is missing, stale, damaged, or not distributable.
"503":
description: Rust bat release backend is unavailable.
/v1/resources:
get:
summary: Paginated resource manifest entries
@@ -544,6 +590,32 @@ paths:
description: Missing or invalid admin token.
"503":
description: Rust bat localized backend is unavailable.
/admin/releases/status:
get:
summary: Read the unified Rust-owned release status view
responses:
"200":
description: Official/localized current relation and integrity status.
"401":
description: Missing or invalid admin token.
"503":
description: Rust bat release backend is unavailable.
/admin/releases:
get:
summary: Read Rust-owned historical release summaries
parameters:
- name: channel
in: query
schema:
type: string
enum: [official, localized]
responses:
"200":
description: Historical release summaries.
"401":
description: Missing or invalid admin token.
"503":
description: Rust bat release backend is unavailable.
/admin/control/{action}:
post:
summary: Forward an allowlisted control or schedule action to Rust bat
@@ -553,7 +625,7 @@ paths:
required: true
schema:
type: string
enum: [reload, refresh, restart, sync, verify, repair, catalog-refresh, schedule-add, schedule-update, schedule-remove, schedule-run, task-cancel, translation-task-update, translation-worker-run, translation-proofread, translation-memory-confirm, translation-glossary-add, translation-glossary-update, translation-glossary-approve, translation-glossary-deprecate, translation-glossary-delete, localized-publish, localized-rollback]
enum: [reload, refresh, restart, sync, verify, repair, catalog-refresh, schedule-add, schedule-update, schedule-remove, schedule-run, task-cancel, translation-task-update, translation-worker-run, translation-proofread, translation-memory-confirm, translation-glossary-add, translation-glossary-update, translation-glossary-approve, translation-glossary-deprecate, translation-glossary-delete, localized-publish, localized-rollback, release-cleanup]
requestBody:
required: false
content: