pagination configurations
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 list by applying the following steps in sequence:
Parse paginated list query (util.parsePaginatedListQuery)
Check if pagination is set (util.parsePaginatedListQuery)
Check if pagination limit is bigger than max page size (configurations.maxPageSize)
Get the attachment list (attachmentService.getPaginatedAttachments)
Normalize the attachment list (attachmentService.normalizeAttachments)
Return the normalized attachment list
400 NBError Bad Request
500 NBError Internal Server Error
{
"@nextLink": "https://api.example.com/attachments?limit=10&offset=10",
"@previousLink": "https://api.example.com/attachments?limit=10&offset=0",
"count": 10,
"total": 100,
"value": [ ...,
{
"id": "1",
"ownerId": "userId",
"ownerType": "user",
"name": "image.png",
"type": "image/png",
"isPublic": true,
"url": "https://api.example.com/attachments/objectId",
},
]
}
Generated using TypeDoc
Handler for get attachment list