GetByServiceRequest()

Get a file by service request id

Description

Retrieves any file attachments that are associated to the given service request id.

Package Details

Interface

IFileAttachmentManager

Syntax

await fileAttachmentManager.GetByServiceRequest(int id);

Returns

Task<ICollection<FileAttachment>>

API

GET
/api/v1/servicerequests/{id}/file-attachments

Parameters

Parameter

Description

Parameter Type

Parameter

Description

Parameter Type

id

The service request id

path

Returns

200 OK - File Attachment

Example

int serviceRequestId = 123; var attachments = await _fileAttachmentManager.GetByServiceRequest(serviceRequestId);