POST api/PhoneModuleOrder/AddPhoneModuleOrderBatch

Request Information

URI Parameters

None.

Body Parameters

PhoneModuleOrderSecond
NameDescriptionTypeAdditional information
OrderList

Collection of PhoneModuleOrderDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderList": [
    {
      "StaffID": 1,
      "MobilePhoneModuleId": 2,
      "OrderId": 3,
      "Id": 4,
      "CreateBy": "sample string 6",
      "CreateTime": "2019-05-23T21:19:27.7613965+08:00"
    },
    {
      "StaffID": 1,
      "MobilePhoneModuleId": 2,
      "OrderId": 3,
      "Id": 4,
      "CreateBy": "sample string 6",
      "CreateTime": "2019-05-23T21:19:27.7613965+08:00"
    }
  ]
}

application/xml, text/xml

Sample:
<PhoneModuleOrderSecond xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <OrderList>
    <PhoneModuleOrderDTO>
      <CreateBy>sample string 6</CreateBy>
      <CreateId>1</CreateId>
      <CreateTime>2019-05-23T21:19:27.7613965+08:00</CreateTime>
      <Id>4</Id>
      <IsObsoleted>true</IsObsoleted>
      <ModifyBy>sample string 5</ModifyBy>
      <ModifyId>1</ModifyId>
      <ModifyTime>2019-05-23T21:19:27.7613965+08:00</ModifyTime>
      <MobilePhoneModuleId>2</MobilePhoneModuleId>
      <OrderId>3</OrderId>
      <StaffID>1</StaffID>
    </PhoneModuleOrderDTO>
    <PhoneModuleOrderDTO>
      <CreateBy>sample string 6</CreateBy>
      <CreateId>1</CreateId>
      <CreateTime>2019-05-23T21:19:27.7613965+08:00</CreateTime>
      <Id>4</Id>
      <IsObsoleted>true</IsObsoleted>
      <ModifyBy>sample string 5</ModifyBy>
      <ModifyId>1</ModifyId>
      <ModifyTime>2019-05-23T21:19:27.7613965+08:00</ModifyTime>
      <MobilePhoneModuleId>2</MobilePhoneModuleId>
      <OrderId>3</OrderId>
      <StaffID>1</StaffID>
    </PhoneModuleOrderDTO>
  </OrderList>
</PhoneModuleOrderSecond>

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

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>