GET api/documents/{id}
Gets information about a document.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Document identifier. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Name, size, hash and download URL.
DocumentDownloadName | Description | Type | Additional information |
---|---|---|---|
Name |
Document name. |
string |
None. |
Size |
Document size in bytes. |
integer |
None. |
Hash |
Document hash (SHA256). |
string |
None. |
DownloadUrl |
Url to download the document. |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "Size": 2, "Hash": "sample string 3", "DownloadUrl": "sample string 4" }
application/xml, text/xml
Sample:
<DocumentDownload xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PuntoNeutro.WebApi.Models"> <DownloadUrl>sample string 4</DownloadUrl> <Hash>sample string 3</Hash> <Name>sample string 1</Name> <Size>2</Size> </DocumentDownload>