Skip to content

Commit

Permalink
Fixes Swagger docs for SMTP attachment downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed May 5, 2024
1 parent cdf74fe commit 637b410
Showing 1 changed file with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,19 @@
),
],
responses: [
// TODO: Add response for file download
// new OA\Response(
// response: 200,
// description: 'Success',
// content: new OA\Schema(
// type: 'file',
// format: 'binary',
// ),
// ),
new OA\Response(
response: 200,
description: 'Success',
headers: [
new OA\Header(header: 'Content-Type', schema: new OA\Schema(type: 'string', format: 'binary')),
new OA\Header(header: 'Content-Length', schema: new OA\Schema(type: 'string', format: 'binary')),
new OA\Header(header: 'Content-Disposition', schema: new OA\Schema(type: 'string', format: 'binary')),
],
content: new OA\MediaType(
mediaType: 'application/octet-stream',
schema: new OA\Schema(type: 'string', format: 'binary'),
),
),
new OA\Response(
response: 404,
description: 'Not found',
Expand Down

0 comments on commit 637b410

Please sign in to comment.