unique identifier of the attachment
injected service use to handle the attachment related operations
injected logger used to handle the logging
request context [headers, body, params, query].
200 Status OK
This handler is used to get an attachment by applying the following steps in sequence:
Get the attachment (attachmentService.getOneAttachment)
Normalize the attachment (attachmentService.normalizeAttachment)
Return the normalized attachment
404 NBError Not Found
500 NBError Internal Server Error
{
"id": "1",
"ownerId": "userId",
"ownerType": "user",
"name": "image.png",
"type": "image/png",
"isPublic": true,
"url": "https://api.example.com/attachments/objectId",
}
Generated using TypeDoc
Get an attachment