POST api/ITILStaffNoReside/AddITILStaffNoResideSubmit

Request Information

URI Parameters

None.

Body Parameters

ITILStaffNoResideDTO
NameDescriptionTypeAdditional information
ID

integer

None.

StaffName

string

String length: inclusive between 0 and 100

Type

string

String length: inclusive between 0 and 50

Depatment

string

String length: inclusive between 0 and 200

Tel

string

String length: inclusive between 0 and 20

OpeationRoom

boolean

None.

AutoDoor

boolean

None.

IDCard

string

String length: inclusive between 0 and 50

CreateDate

date

None.

OrgCode

string

String length: inclusive between 0 and 100

ParentCode

string

String length: inclusive between 0 and 100

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "StaffName": "sample string 2",
  "Type": "sample string 3",
  "Depatment": "sample string 4",
  "Tel": "sample string 5",
  "OpeationRoom": true,
  "AutoDoor": true,
  "IDCard": "sample string 8",
  "CreateDate": "2018-12-15T09:46:23.1533829+08:00",
  "OrgCode": "sample string 10",
  "ParentCode": "sample string 11"
}

application/xml, text/xml

Sample:
<ITILStaffNoResideDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <AutoDoor>true</AutoDoor>
  <CreateDate>2018-12-15T09:46:23.1533829+08:00</CreateDate>
  <Depatment>sample string 4</Depatment>
  <ID>1</ID>
  <IDCard>sample string 8</IDCard>
  <OpeationRoom>true</OpeationRoom>
  <OrgCode>sample string 10</OrgCode>
  <ParentCode>sample string 11</ParentCode>
  <StaffName>sample string 2</StaffName>
  <Tel>sample string 5</Tel>
  <Type>sample string 3</Type>
</ITILStaffNoResideDTO>

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

Response Information

Resource Description

StatusDTO
NameDescriptionTypeAdditional information
Status

状态

integer

None.

StatusMessage

消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "StatusMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<StatusDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <Status>1</Status>
  <StatusMessage>sample string 1</StatusMessage>
</StatusDTO>