POST api/Module/UpdateModuleTreeOrder

Request Information

URI Parameters

None.

Body Parameters

OrderHandler
NameDescriptionTypeAdditional information
ModuleOrders

Collection of ModuleOrderDto

None.

Request Formats

application/json, text/json

Sample:
{
  "ModuleOrders": [
    {
      "IsHaveChildren": true,
      "ModuleId": 2,
      "NewOrder": 3
    },
    {
      "IsHaveChildren": true,
      "ModuleId": 2,
      "NewOrder": 3
    }
  ]
}

application/xml, text/xml

Sample:
<OrderHandler xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <ModuleOrders>
    <ModuleOrderDto>
      <IsHaveChildren>true</IsHaveChildren>
      <ModuleId>2</ModuleId>
      <NewOrder>3</NewOrder>
    </ModuleOrderDto>
    <ModuleOrderDto>
      <IsHaveChildren>true</IsHaveChildren>
      <ModuleId>2</ModuleId>
      <NewOrder>3</NewOrder>
    </ModuleOrderDto>
  </ModuleOrders>
</OrderHandler>

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

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>