POST api/AddToCart

Request Information

URI Parameters

None.

Body Parameters

AddToCartRequest
NameDescriptionTypeAdditional information
flat_id

integer

None.

product_id

integer

None.

color_id

integer

None.

mrp_price

string

None.

muh_price

string

None.

Request Formats

application/json, text/json

Sample:
{
  "flat_id": 1,
  "product_id": 2,
  "color_id": 3,
  "mrp_price": "sample string 4",
  "muh_price": "sample string 5"
}

application/xml, text/xml

Sample:
<AddToCartRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/dbKey2h.Models">
  <color_id>3</color_id>
  <flat_id>1</flat_id>
  <mrp_price>sample string 4</mrp_price>
  <muh_price>sample string 5</muh_price>
  <product_id>2</product_id>
</AddToCartRequest>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.