POST api/OrgOrganization/GetOrgTreeList

Request Information

URI Parameters

None.

Body Parameters

OrgTreeFilter
NameDescriptionTypeAdditional information
RecursionDepth

integer

None.

RootNodeId

integer

None.

Lev1OrgCode

string

None.

IsUseLev1Filter

boolean

None.

CheckedNodeIds

Collection of integer

None.

SelectedNodeIds

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "RecursionDepth": 1,
  "RootNodeId": 2,
  "Lev1OrgCode": "sample string 3",
  "IsUseLev1Filter": true,
  "CheckedNodeIds": [
    1,
    1
  ],
  "SelectedNodeIds": [
    1,
    1
  ]
}

application/xml, text/xml

Sample:
<OrgTreeFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <CheckedNodeIds xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>1</d2p1:int>
  </CheckedNodeIds>
  <IsUseLev1Filter>true</IsUseLev1Filter>
  <Lev1OrgCode>sample string 3</Lev1OrgCode>
  <RootNodeId>2</RootNodeId>
  <SelectedNodeIds xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>1</d2p1:int>
  </SelectedNodeIds>
  <RecursionDepth>1</RecursionDepth>
</OrgTreeFilter>

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

Response Information

Resource Description

Collection of OrgTreeDTO
NameDescriptionTypeAdditional information
id

integer

None.

label

string

None.

value

string

None.

title

string

None.

nodeKey

string

None.

expand

boolean

None.

pid

string

None.

bankCode

string

None.

deptCode

string

None.

roomCode

string

None.

children

Collection of OrgTreeDTO

None.

checked

boolean

None.

Response 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 'DTO.OrgTreeDTO'. Path '[0].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 'DTO.OrgTreeDTO'. Path '[0].children'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: “DTO.OrgTreeDTO”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: “DTO.OrgTreeDTO”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。