POST api/MallV720/CreateOrder

提交订单

Request Information

URI Parameters

None.

Body Parameters

ZaiMieApp.WebApi.ViewModel.SubmitMallOrder
NameDescriptionTypeAdditional information
goodsIds

购买的商品,id之间用逗号隔开

string

None.

goodsCounts

购买的商品数量,数量之间用逗号隔开

string

None.

useScoreAmount

使用的积分量

integer

None.

receiveinfoId

收货地址id

integer

None.

demand

要求

string

None.

sign

string

None.

stamp

string

None.

Request Formats

application/json, text/json

Sample:
{
  "goodsIds": "sample string 1",
  "goodsCounts": "sample string 2",
  "useScoreAmount": 3,
  "receiveinfoId": 4,
  "demand": "sample string 5",
  "sign": "sample string 6",
  "stamp": "sample string 7"
}

application/xml, text/xml

Sample:
<SubmitMallOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel">
  <sign>sample string 6</sign>
  <stamp>sample string 7</stamp>
  <demand>sample string 5</demand>
  <goodsCounts>sample string 2</goodsCounts>
  <goodsIds>sample string 1</goodsIds>
  <receiveinfoId>4</receiveinfoId>
  <useScoreAmount>3</useScoreAmount>
</SubmitMallOrder>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'ZaiMieApp.WebApi.ViewModel.SubmitMallOrder'.

Response Information

Resource Description

ZaiMieApp.WebApi.ViewModel.ResultDataMsgOfZaiMieApp.WebApi.ViewModel.MallOrder
NameDescriptionTypeAdditional information
success

boolean

None.

code

integer

None.

data

ZaiMieApp.WebApi.ViewModel.MallOrder

None.

addcoin

integer

None.

message

string

None.

page

integer

None.

allPage

integer

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'System.Net.Http.Formatting.JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'ZaiMieApp.WebApi.ViewModel.GoodsView'. Path 'data.orderDetails[0].goods.recommendGoods'.

text/json

Sample:

An exception has occurred while using the formatter 'System.Net.Http.Formatting.JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'ZaiMieApp.WebApi.ViewModel.GoodsView'. Path 'data.orderDetails[0].goods.recommendGoods'.

application/xml

Sample:

An exception has occurred while using the formatter 'System.Net.Http.Formatting.XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: “System.Collections.Generic.List`1[[ZaiMieApp.WebApi.ViewModel.GoodsView, ZaiMieApp.WebApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

text/xml

Sample:

An exception has occurred while using the formatter 'System.Net.Http.Formatting.XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: “System.Collections.Generic.List`1[[ZaiMieApp.WebApi.ViewModel.GoodsView, ZaiMieApp.WebApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。