POST api/social/saveorder

Request Information

URI Parameters

None.

Body Parameters

TrainOrderPara
NameDescriptionTypeAdditional information
StudentNo

string

None.

TotalAmount

decimal number

None.

WeixinOpenId

string

None.

WeixinName

string

None.

Mobile

string

None.

lsGood

Collection of TrainOrderGoodPara

None.

Request Formats

application/json, text/json

Sample:
{
  "StudentNo": "sample string 1",
  "TotalAmount": 2.0,
  "WeixinOpenId": "sample string 3",
  "WeixinName": "sample string 4",
  "Mobile": "sample string 5",
  "lsGood": [
    {
      "ProductId": 1,
      "ProductName": "sample string 2",
      "ShouldPayPrice": 3.0
    },
    {
      "ProductId": 1,
      "ProductName": "sample string 2",
      "ShouldPayPrice": 3.0
    }
  ]
}

application/xml, text/xml

Sample:
<TrainOrderPara xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SecSchoolWebApi.Models">
  <Mobile>sample string 5</Mobile>
  <StudentNo>sample string 1</StudentNo>
  <TotalAmount>2</TotalAmount>
  <WeixinName>sample string 4</WeixinName>
  <WeixinOpenId>sample string 3</WeixinOpenId>
  <lsGood>
    <TrainOrderGoodPara>
      <ProductId>1</ProductId>
      <ProductName>sample string 2</ProductName>
      <ShouldPayPrice>3</ShouldPayPrice>
    </TrainOrderGoodPara>
    <TrainOrderGoodPara>
      <ProductId>1</ProductId>
      <ProductName>sample string 2</ProductName>
      <ShouldPayPrice>3</ShouldPayPrice>
    </TrainOrderGoodPara>
  </lsGood>
</TrainOrderPara>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.