POST api/mzsf/getdeptdesc

Request Information

URI Parameters

None.

Body Parameters

paraInGetDeptDesc
NameDescriptionTypeAdditional information
DeptCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeptCode": "sample string 1"
}

application/xml, text/xml

Sample:
<paraInGetDeptDesc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ydzf_api.Models">
  <DeptCode>sample string 1</DeptCode>
</paraInGetDeptDesc>

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

Response Information

Resource Description

paraOutGetDeptDesc
NameDescriptionTypeAdditional information
ResultCode

string

None.

ErrorMsg

string

None.

RecordCount

string

None.

DetailsInfo

Collection of DeptDescInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": "sample string 1",
  "ErrorMsg": "sample string 2",
  "RecordCount": "sample string 3",
  "DetailsInfo": [
    {
      "DeptCode": "sample string 1",
      "DeptName": "sample string 2",
      "DeptDesc": "sample string 3"
    },
    {
      "DeptCode": "sample string 1",
      "DeptName": "sample string 2",
      "DeptDesc": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<paraOutGetDeptDesc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ydzf_api.Models">
  <DetailsInfo>
    <DeptDescInfo>
      <DeptCode>sample string 1</DeptCode>
      <DeptDesc>sample string 3</DeptDesc>
      <DeptName>sample string 2</DeptName>
    </DeptDescInfo>
    <DeptDescInfo>
      <DeptCode>sample string 1</DeptCode>
      <DeptDesc>sample string 3</DeptDesc>
      <DeptName>sample string 2</DeptName>
    </DeptDescInfo>
  </DetailsInfo>
  <ErrorMsg>sample string 2</ErrorMsg>
  <RecordCount>sample string 3</RecordCount>
  <ResultCode>sample string 1</ResultCode>
</paraOutGetDeptDesc>