rawGetDocumentAttachmentWithHttpInfo method

Future<Response> rawGetDocumentAttachmentWithHttpInfo(
  1. String documentId,
  2. String attachmentId, {
  3. String? enckeys,
  4. String? fileName,
})

Load document's attachment

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> rawGetDocumentAttachmentWithHttpInfo(String documentId, String attachmentId, { String? enckeys, String? fileName, }) async {
  // ignore: prefer_const_declarations
  final path =
      r'/rest/v1/document/{documentId}/attachment/{attachmentId}'.replaceAll('{documentId}', documentId).replaceAll('{attachmentId}', attachmentId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (enckeys != null) {
    queryParams.addAll(_queryParams('', 'enckeys', enckeys));
  }
  if (fileName != null) {
    queryParams.addAll(_queryParams('', 'fileName', fileName));
  }

  const authNames = <String>[r'basicSchema'];
  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    authNames,
  );
}