POST api/StorageObject/GetAttachment
Get the attachment file for the given storage id
Request Information
URI Parameters
None.
Body Parameters
AttachmentExtRequestName | Description | Type | Additional 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:
multipart/form-data
Sample:
application/octet-stream
Sample:
Response Information
Resource Description
FileOutputInfoName | Description | Type | Additional 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>