POST api/cart/post

Request Information

URI Parameters

None.

Body Parameters

CartModel
NameDescriptionTypeAdditional information
goods_id

integer

None.

spec_sku_id

string

None.

num

integer

None.

open_id

string

None.

shop_id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "goods_id": 1,
  "spec_sku_id": "sample string 2",
  "num": 3,
  "open_id": "sample string 4",
  "shop_id": 5
}

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

Response Information

Resource Description

AjaxResult
NameDescriptionTypeAdditional information
PromptMsg

string

None.

Result

DoResult

None.

RetValue

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "PromptMsg": "sample string 1",
  "Result": 0,
  "RetValue": {}
}