POST api/file/common/download

Request Information

URI Parameters

None.

Body Parameters

HttpDownloadInfo
NameDescriptionTypeAdditional information
url

string

None.

folder

string

None.

fileName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "url": "sample string 1",
  "folder": "sample string 2",
  "fileName": "sample string 3"
}

application/xml, text/xml

Sample:
<HttpDownloadInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Connect.Entity.Common">
  <fileName>sample string 3</fileName>
  <folder>sample string 2</folder>
  <url>sample string 1</url>
</HttpDownloadInfo>

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 'HttpDownloadInfo'.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
data

Object

None.

success

boolean

None.

code

integer

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {},
  "success": true,
  "code": 1,
  "message": "sample string 2"
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Connect.Fesco.Entity.Entity">
  <code>1</code>
  <data />
  <message>sample string 2</message>
  <success>true</success>
</Result>