GET api/OrgPosition/GetModelById/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

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-04-21T16:49:16.3706624+08:00",
  "PostionType": 9,
  "StaffIds": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<OrgPositionDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <CreatedBy>7</CreatedBy>
  <CreatedOn>2019-04-21T16:49:16.3706624+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:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </StaffIds>
  <SysCode>sample string 5</SysCode>
</OrgPositionDTO>