POST api/shoppingcart/editcart

修改購物車

Request Information

URI Parameters

None.

Body Parameters

UpdateCartRQContract
NameDescriptionTypeAdditional information
memberid

會員ID

integer

None.

guestid

游客ID

string

None.

tourid

詳細ID

integer

None.

adult

成人個數

integer

None.

child

兒童個數

integer

None.

infant

嬰兒個數

integer

None.

elderly

老人個數

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "memberid": 1,
  "guestid": "sample string 2",
  "tourid": 3,
  "adult": 4,
  "child": 5,
  "infant": 6,
  "elderly": 7
}

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

Response Information

Resource Description

修改購物車

ReturnResultOfBoolean
NameDescriptionTypeAdditional information
data

boolean

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": true,
  "code": 2,
  "message": "sample string 3"
}