POST api/shoppingcart/select

勾选购物车

Request Information

URI Parameters

None.

Body Parameters

Collection of SelectedShoppingCart
NameDescriptionTypeAdditional information
Id

购物id

integer

None.

IsSelected

是否勾选

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "IsSelected": true
  },
  {
    "Id": 1,
    "IsSelected": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfSelectedShoppingCart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataModel.Exchange.Request">
  <SelectedShoppingCart>
    <Id>1</Id>
    <IsSelected>true</IsSelected>
  </SelectedShoppingCart>
  <SelectedShoppingCart>
    <Id>1</Id>
    <IsSelected>true</IsSelected>
  </SelectedShoppingCart>
</ArrayOfSelectedShoppingCart>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseBase
NameDescriptionTypeAdditional information
errcode

错误码,默认为成功:SUCCESS

string

None.

errmsg

错误信息,默认为:成功

string

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": "sample string 1",
  "errmsg": "sample string 2"
}

application/xml, text/xml

Sample:
<ResponseBase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.WebApi">
  <errcode>sample string 1</errcode>
  <errmsg>sample string 2</errmsg>
</ResponseBase>