fix(api): add response_class=Response to DELETE endpoint for 204 status
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Failing after 160h22m25s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 160h22m27s

This commit is contained in:
2026-07-02 20:32:05 +08:00
parent 8b2ba8dc16
commit bb21990173
+2 -1
View File
@@ -1,3 +1,4 @@
from fastapi.responses import Response
"""剪辑计划管理 API — Phase 8 模板编排引擎.
RESTful CRUD for EditPlan:
@@ -279,7 +280,7 @@ def update_plan(
return _to_response(result)
@router.delete("/{plan_id}", status_code=status.HTTP_204_NO_CONTENT)
@router.delete("/{plan_id}", status_code=status.HTTP_204_NO_CONTENT, response_class=Response)
def delete_plan(
plan_id: str,
db: Session = Depends(get_db_session),