POST api/shopcarts/addshopcart
添加购物车
Request Information
URI Parameters
None.
Body Parameters
AddShopCartModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductId |
产品ID |
string |
None. |
| BuyCount |
购买数量 |
integer |
None. |
| UserId |
用户ID |
string |
None. |
| Towns |
乡镇编号 |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProductId": "sample string 1",
"BuyCount": 2,
"UserId": "sample string 3",
"Towns": 4
}
application/xml, text/xml
Sample:
<AddShopCartModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Waiter.Mall.Apis.Models"> <BuyCount>2</BuyCount> <ProductId>sample string 1</ProductId> <Towns>4</Towns> <UserId>sample string 3</UserId> </AddShopCartModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.