Skip to content

Surfaces & paths (PROPOSED) ​

Version: 1.5
Date: 2026-11-25
Status: PROPOSED (MVP Route Handlers wired; Admin UI phase sau)

Logical surfaces + HTTP paths đề xuất. Chưa DECIDED — OpenAPI sau map từ bảng này.

Prefix giả định: /v1 (runtime Next: /api/v1).

SurfaceMethodPath (PROPOSED)Mục đíchMVP code
SCR-API-TEMPPOST/v1/uploadsUpload tạm → tmp_idCó
SCR-API-PROMOTEPOST/v1/uploads/{tmp_id}/promote→ file_id (đồng bộ; tier=local). Migrate cloud = job sauCó
SCR-API-FILE-GETGET/v1/files/{file_id}MetadataCó
SCR-API-VARIANTGET/v1/files/{file_id}/{size}WebP allowlistCó (+ cloud source khi local purged)
SCR-API-ORIGINALGET/v1/files/{file_id}/originalStream original (local hoặc GetObject cloud)Có
SCR-API-METAPATCH/v1/files/{file_id}display_nameCó
SCR-API-LIFECYCLEPOST/v1/files/{file_id}/lifecyclesoft_delete | hold | restoreCó (Q-BR-013 policy vẫn OPEN)
SCR-OPS-CONNGET/POST/v1/ops/storage-connectionsList/createCó
SCR-OPS-CONNGET/PATCH/v1/ops/storage-connections/{id}Get/updateCó
SCR-OPS-CONFIGGET/PUT/v1/ops/config/{key}Config (+ clear Redis catalog cache on PUT)Có
SCR-OPS-ORCHPOST/v1/ops/jobs/reloadReload nowCó
SCR-OPS-CACHEPOST/v1/ops/config/cache/clearClear Redis config catalogCó
SCR-OPS-JOBSGET/v1/ops/migration-jobsJobs listCó
SCR-OPS-JOBSGET/v1/ops/migration-jobs/{migration_job_id}Jobs detailCó
SCR-OPS-JOBSPOST/v1/ops/migration-jobs/{migration_job_id}/redriveRequeue failed → pending (không PutObject inline)Có (MVP)

Chưa làm: Admin UI (Next + platform-ui) — phase sau.

Chi tiết field/state: discovery screen-specification.md.

platform-file/docs = SoT chi tiết File Service · hub platform-docs giữ overview + ref