POST api/StorageObject/GetAttachment

Get the attachment file for the given storage id

Request Information

URI Parameters

None.

Body Parameters

AttachmentExtRequest
NameDescriptionTypeAdditional information
attachmentInfo

AttachmentInfo

None.

Guid

string

None.

Vendor_Name

Vendor name in caps.

string

Required

Vendor_UserID

User ID of Vendor service account.

string

Required

Vendor_Password

Encrypted Password of vendor service account

string

Required

Request Formats

application/json, text/json, text/html

Sample:
{
  "attachmentInfo": {
    "userGpid": "sample string 1",
    "systemId": 2,
    "docId": 3,
    "memoryStream": null,
    "storageId": "sample string 4",
    "documentSource": 1,
    "fileName": "sample string 5",
    "podType": "sample string 6"
  },
  "Guid": "sample string 1",
  "Vendor_Name": "sample string 2",
  "Vendor_UserID": "sample string 3",
  "Vendor_Password": "sample string 4"
}

application/xml, text/xml

Sample:
<AttachmentExtRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NextGen.Digital.Imaging.App.ExtGateway.Models">
  <Vendor_Name>sample string 2</Vendor_Name>
  <Vendor_Password>sample string 4</Vendor_Password>
  <Vendor_UserID>sample string 3</Vendor_UserID>
  <Guid>sample string 1</Guid>
  <attachmentInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/NextGen.Digital.Imaging.App.Gateway.EntityDataModels">
    <d2p1:docId>3</d2p1:docId>
    <d2p1:documentSource>Web_Upload</d2p1:documentSource>
    <d2p1:fileName>sample string 5</d2p1:fileName>
    <d2p1:memoryStream xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.IO" i:nil="true" />
    <d2p1:podType>sample string 6</d2p1:podType>
    <d2p1:storageId>sample string 4</d2p1:storageId>
    <d2p1:systemId>2</d2p1:systemId>
    <d2p1:userGpid>sample string 1</d2p1:userGpid>
  </attachmentInfo>
</AttachmentExtRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AttachmentExtRequest'.

multipart/form-data

Sample:

Failed to generate the sample for media type 'multipart/form-data'. Cannot use formatter 'DocumentCreationFormatter' to write type 'AttachmentExtRequest'.

application/octet-stream

Sample:

Failed to generate the sample for media type 'application/octet-stream'. Cannot use formatter 'DocumentCreationFormatter' to write type 'AttachmentExtRequest'.

Response Information

Resource Description

FileOutputInfo
NameDescriptionTypeAdditional information
FileName

string

None.

FilePath

string

None.

FileMemoryStream

MemoryStream

None.

DownloadFileName

string

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "FileName": "sample string 1",
  "FilePath": "sample string 2",
  "FileMemoryStream": null,
  "DownloadFileName": "sample string 3"
}

application/xml, text/xml

Sample:
<FileOutputInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NextGen.Digital.Imaging.Storage.Gateway.EntityDataModels.Models">
  <DownloadFileName>sample string 3</DownloadFileName>
  <FileMemoryStream xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.IO" i:nil="true" />
  <FileName>sample string 1</FileName>
  <FilePath>sample string 2</FilePath>
</FileOutputInfo>