unique identifier of the owner
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)
Add ownerId into filter expression and concat with $filter query
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
{
"@nextLink": "https://api.example.com/userId/attachments?limit=10&offset=10",
"@previousLink": "https://api.example.com/userId/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 attachment list by owner