Files
dify-docs/en
lyzno1 95ace3d9af Add file-preview API to OpenAPI specifications (#435)
* feat(en): add file-preview API to OpenAPI specifications

- Add GET /files/{file_id}/preview endpoint to chat, chatflow, and workflow APIs
- Support file preview and download with as_attachment parameter
- Include proper error handling (400, 403, 404, 500)
- Update Files tag descriptions to include preview operations
- Maintain unique operationIds for each API type
- Align with existing API patterns and template specifications

Resolves: #389

* feat(ja-jp): add file-preview API to Japanese OpenAPI specifications

- Add GET /files/{file_id}/preview endpoint to chat, chatflow, and workflow APIs
- Use Japanese descriptions and maintain "Ja"/"Jp" operationId suffixes
- Support file preview and download with as_attachment parameter
- Include proper error handling with Japanese error messages
- Update Files tag descriptions to include preview operations
- Maintain consistency with existing Japanese API patterns

Related: #389

* feat(zh-hans): add file-preview API to Chinese OpenAPI specifications

- Add GET /files/{file_id}/preview endpoint to chat, chatflow, and workflow APIs
- Use Chinese descriptions and maintain "Cn" operationId suffixes
- Support file preview and download with as_attachment parameter
- Include proper error handling with Chinese error messages
- Update Files tag descriptions to include preview operations
- Maintain consistency with existing Chinese API patterns

Related: #389
2025-09-05 19:05:59 +08:00
..
2025-08-11 16:52:00 -07:00
2025-07-16 16:42:34 +08:00
2025-07-16 16:42:34 +08:00
2025-07-16 16:42:34 +08:00