POST api/Unit/UnitList
Request Information
URI Parameters
None.
Body Parameters
ReadDTOOfReadUnit| Name | Description | Type | Additional information |
|---|---|---|---|
| data | ReadUnit |
None. |
|
| PageSize | integer |
None. |
|
| PageIndex | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"data": {
"vague": "sample string 1"
},
"PageSize": 1,
"PageIndex": 2
}
application/xml, text/xml
Sample:
<ReadDTOOfReadUnitcc8wrA37 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YZ_TradingPlatform_API.Models">
<PageIndex>2</PageIndex>
<PageSize>1</PageSize>
<data xmlns:d2p1="http://schemas.datacontract.org/2004/07/YZ_TradingPlatform_API.ReadModels">
<d2p1:vague>sample string 1</d2p1:vague>
</data>
</ReadDTOOfReadUnitcc8wrA37>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultDTOOfListOfResult_UnitInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| code | integer |
None. |
|
| data | Collection of Result_UnitInfo |
None. |
|
| msg | string |
None. |
|
| Exception | Object |
None. |
|
| Exception1 | Object |
None. |
|
| count | integer |
None. |
|
| PageSize | integer |
None. |
|
| PageIndex | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"data": [
{
"create_date": "sample string 1",
"unit_name": "sample string 2",
"eng_name": "sample string 3"
},
{
"create_date": "sample string 1",
"unit_name": "sample string 2",
"eng_name": "sample string 3"
}
],
"msg": "sample string 2",
"Exception": {},
"Exception1": {},
"count": 5,
"PageSize": 6,
"PageIndex": 7
}
application/xml, text/xml
Sample:
<ResultDTOOfArrayOfResult_UnitInfo3G4q1gKH xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YZ_TradingPlatform_API.Models">
<Exception />
<Exception1 />
<PageIndex>7</PageIndex>
<PageSize>6</PageSize>
<code>1</code>
<count>5</count>
<data xmlns:d2p1="http://schemas.datacontract.org/2004/07/YZ_TradingPlatform_API.ResultModels">
<d2p1:Result_UnitInfo>
<d2p1:eng_name>sample string 3</d2p1:eng_name>
<d2p1:unit_name>sample string 2</d2p1:unit_name>
<d2p1:create_date>sample string 1</d2p1:create_date>
</d2p1:Result_UnitInfo>
<d2p1:Result_UnitInfo>
<d2p1:eng_name>sample string 3</d2p1:eng_name>
<d2p1:unit_name>sample string 2</d2p1:unit_name>
<d2p1:create_date>sample string 1</d2p1:create_date>
</d2p1:Result_UnitInfo>
</data>
<msg>sample string 2</msg>
</ResultDTOOfArrayOfResult_UnitInfo3G4q1gKH>