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
Parameters
...
Parameter | Description | Parameter Type |
---|---|---|
id | The service request id | path |
Returns
200 OK - File Attachment
Example
Code Block | ||
---|---|---|
|
...
int serviceRequestId = 123 |
...
; var attachments = await _fileAttachmentManager.GetByServiceRequest( |
...
serviceRequestId); |