Get a file by service request id
Description
Gets a file attachment by a Retrieves any file attachments that are associated to the given service request id.
Package Details
...
await fileAttachmentManager.GetByServiceRequest(<sr id>int id);
Returns
Task<FileAttachment>
Task<ICollection<FileAttachment>>
API
GET
/api/v1/servicerequests/{id}/file-attachments
...
Example
Code Block | ||
---|---|---|
| ||
constint intserviceRequestId = 123; var attachmentattachments = await _fileAttachmentManager.GetByServiceRequest(idserviceRequestId); |