Skip to content

Commit 2c86c25

Browse files
committed
feat(api): add statusText to envelope files response
Add statusText field to each file in the envelope's files array to provide human-readable status information in the API response. Signed-off-by: Vitor Mattos <[email protected]>
1 parent 6b7e958 commit 2c86c25

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Controller/FileController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ public function addFileToEnvelope(string $uuid): DataResponse {
501501
'uuid' => $childFile->getUuid(),
502502
'name' => $childFile->getName(),
503503
'status' => $childFile->getStatus(),
504+
'statusText' => $this->fileMapper->getTextOfStatus($childFile->getStatus()),
504505
];
505506
}
506507

0 commit comments

Comments
 (0)