POST api/ITILComSystemsOrList/AddITILComSystemsOrList

Request Information

URI Parameters

None.

Body Parameters

ITILComSystemsOrListWhereDOM
NameDescriptionTypeAdditional information
StaffID

integer

None.

Type

integer

None.

searchWhere

string

None.

dtoList

Collection of ITILComSystemsOrListDTO

None.

PageNum

integer

None.

NumPerPage

integer

None.

PageIndex

integer

None.

PageSize

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "StaffID": 1,
  "Type": 1,
  "searchWhere": "sample string 2",
  "dtoList": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "SystemUrl": "sample string 3",
      "ListUrl": "sample string 4",
      "Type": 5,
      "CreatedBy": 6,
      "StaffID": 7,
      "CreateTime": "2019-05-19T23:17:00.1041374+08:00"
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "SystemUrl": "sample string 3",
      "ListUrl": "sample string 4",
      "Type": 5,
      "CreatedBy": 6,
      "StaffID": 7,
      "CreateTime": "2019-05-19T23:17:00.1041374+08:00"
    }
  ],
  "PageNum": 1,
  "NumPerPage": 1,
  "PageIndex": 1,
  "PageSize": 1
}

application/xml, text/xml

Sample:
<ITILComSystemsOrListWhereDOM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DOM">
  <NumPerPage>1</NumPerPage>
  <PageNum>1</PageNum>
  <StaffID>1</StaffID>
  <Type>1</Type>
  <dtoList xmlns:d2p1="http://schemas.datacontract.org/2004/07/DTO">
    <d2p1:ITILComSystemsOrListDTO>
      <d2p1:CreateTime>2019-05-19T23:17:00.1041374+08:00</d2p1:CreateTime>
      <d2p1:CreatedBy>6</d2p1:CreatedBy>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:ListUrl>sample string 4</d2p1:ListUrl>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:StaffID>7</d2p1:StaffID>
      <d2p1:SystemUrl>sample string 3</d2p1:SystemUrl>
      <d2p1:Type>5</d2p1:Type>
    </d2p1:ITILComSystemsOrListDTO>
    <d2p1:ITILComSystemsOrListDTO>
      <d2p1:CreateTime>2019-05-19T23:17:00.1041374+08:00</d2p1:CreateTime>
      <d2p1:CreatedBy>6</d2p1:CreatedBy>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:ListUrl>sample string 4</d2p1:ListUrl>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:StaffID>7</d2p1:StaffID>
      <d2p1:SystemUrl>sample string 3</d2p1:SystemUrl>
      <d2p1:Type>5</d2p1:Type>
    </d2p1:ITILComSystemsOrListDTO>
  </dtoList>
  <searchWhere>sample string 2</searchWhere>
</ITILComSystemsOrListWhereDOM>

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

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>