POST api/XTRF/File/asyncDownloadFileByIds?ProjectOrCase={ProjectOrCase}&id={id}&fromModule={fromModule}&ip={ip}

异步下载文件树压缩包

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ProjectOrCase

project 或者 case

string

Required

id

project 或者 case 对应的id

integer

Required

fromModule

string

Required

ip

string

Required

Body Parameters

勾选或全部文件树的结构 示例: {"children":[{"id":41,"children":[{"id":46,"children":[{"id":17,"children":[]}]}]}],"id":0}

TreeId
NameDescriptionTypeAdditional information
id

integer

None.

LevelTag

string

None.

FileTag

boolean

None.

children

Collection of TreeId

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'Base.Controllers.XTRFFileController+TreeId'. Path 'children'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'Base.Controllers.XTRFFileController+TreeId'. Path 'children'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: “System.Collections.Generic.List`1[[Base.Controllers.XTRFFileController+TreeId, Base, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: “System.Collections.Generic.List`1[[Base.Controllers.XTRFFileController+TreeId, Base, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

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

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="id"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="LevelTag"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="FileTag"

True
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.