Skip to content

Commit

Permalink
Add swagger docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ipasic-softserve committed Nov 13, 2024
1 parent d584faa commit e189221
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion docs/attachments/attachment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ paths:
schema:
type: boolean
required: false
description: If true will include in response attachments that have isDuplicate set to true.
description: If true will include in response attachments that have isDuplicate set to true.
responses:
200:
description: OK
Expand Down Expand Up @@ -134,6 +134,33 @@ paths:
code: UNAUTHORIZED
message: The requested URL requires user authorization.
/attachments/{id}:
get:
security:
- cookieAuth: []
tags:
- Attachments
summary: Get attachment blob by ID
description: Creates a blob for attachment with the specified ID.
produces:
- application/octet-stream
parameters:
- name: id
in: path
required: true
description: ID of the attachment
type: string
responses:
'200':
description: Successfully downloaded the blob file.
content:
application/octet-stream:
schema:
type: string
format: binary
'404':
description: Blob not found for the given ID.
'500':
description: Error occurred during blob download.
patch:
security:
- cookieAuth: []
Expand Down

0 comments on commit e189221

Please sign in to comment.