injected service use to handle the attachment related operations
injected logger used to handle the logging
request context [headers, body, params, query]. Note:
params.userId
is requiredparams.attachmentId
is required200 Status OK
This validator will check if attachment exist for user by applying the following steps in sequence:
Get userId and attachmentId from context
Check if userId or attachmentId not exist in context
Get attachment by userId and attachmentId with ownerType user
(attachmentService.getOneAttachment)
Check if attachment not found
400 NBError Bad Request
404 NBError Not Found
Generated using TypeDoc
Does owner attachment exist validator