POST api/OrgPosition/GetPositionInfo

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of OrgPositionDTO
NameDescriptionTypeAdditional information
PositionID

integer

None.

PositionCode

string

String length: inclusive between 0 and 64

PositionName

string

String length: inclusive between 0 and 128

PositionRemark

string

String length: inclusive between 0 and 200

SysCode

string

String length: inclusive between 0 and 100

IsObsoleted

boolean

None.

CreatedBy

integer

None.

CreatedOn

date

None.

PostionType

integer

None.

StaffIds

Collection of integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "PositionID": 1,
    "PositionCode": "sample string 2",
    "PositionName": "sample string 3",
    "PositionRemark": "sample string 4",
    "SysCode": "sample string 5",
    "IsObsoleted": true,
    "CreatedBy": 7,
    "CreatedOn": "2019-05-19T22:54:28.1666877+08:00",
    "PostionType": 9,
    "StaffIds": [
      1,
      2
    ]
  },
  {
    "PositionID": 1,
    "PositionCode": "sample string 2",
    "PositionName": "sample string 3",
    "PositionRemark": "sample string 4",
    "SysCode": "sample string 5",
    "IsObsoleted": true,
    "CreatedBy": 7,
    "CreatedOn": "2019-05-19T22:54:28.1666877+08:00",
    "PostionType": 9,
    "StaffIds": [
      1,
      2
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfOrgPositionDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <OrgPositionDTO>
    <CreatedBy>7</CreatedBy>
    <CreatedOn>2019-05-19T22:54:28.1666877+08:00</CreatedOn>
    <IsObsoleted>true</IsObsoleted>
    <PositionCode>sample string 2</PositionCode>
    <PositionID>1</PositionID>
    <PositionName>sample string 3</PositionName>
    <PositionRemark>sample string 4</PositionRemark>
    <PostionType>9</PostionType>
    <StaffIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </StaffIds>
    <SysCode>sample string 5</SysCode>
  </OrgPositionDTO>
  <OrgPositionDTO>
    <CreatedBy>7</CreatedBy>
    <CreatedOn>2019-05-19T22:54:28.1666877+08:00</CreatedOn>
    <IsObsoleted>true</IsObsoleted>
    <PositionCode>sample string 2</PositionCode>
    <PositionID>1</PositionID>
    <PositionName>sample string 3</PositionName>
    <PositionRemark>sample string 4</PositionRemark>
    <PostionType>9</PostionType>
    <StaffIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </StaffIds>
    <SysCode>sample string 5</SysCode>
  </OrgPositionDTO>
</ArrayOfOrgPositionDTO>