getComponentObjectNoteFile function

Future<ApiResponse<ComponentObjectNoteFile>> getComponentObjectNoteFile(
  1. ExsitedClient client,
  2. Object componentUuid,
  3. Object componentObjectId,
  4. Object noteId,
  5. Object fileId, {
  6. bool? raiseOnError,
  7. String? responseFormat,
})

GET /api/{api_version}/components/{component_uuid}/objects/{component_object_id}/notes/{note_id}/files/{file_id}

One file of a note /notes/{note_id}/files/{file_id}, the attachment's uuid.

Implementation

Future<ApiResponse<ComponentObjectNoteFile>> getComponentObjectNoteFile(
  ExsitedClient client,
  Object componentUuid,
  Object componentObjectId,
  Object noteId,
  Object fileId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(CustomComponentsUrls.componentObjectNoteFile,
        pathParams: {
          'component_uuid': componentUuid,
          'component_object_id': componentObjectId,
          'note_id': noteId,
          'file_id': fileId
        },
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: ComponentObjectNoteFile.fromMap);