Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languagec#
constint intserviceRequestId = 123;
var attachmentattachments = await _fileAttachmentManager.GetByServiceRequest(idserviceRequestId);