POST api/ShoppingCart/UnRegestered

Request Information

URI Parameters

None.

Body Parameters

Collection of EdiaryCartProductModels
NameDescriptionTypeAdditional information
P_Id

integer

Required

P_Quantity

integer

Required

P_PackSize

integer

Required

P_PackSizeId

integer

Required

Is_A_Deal

boolean

Required

P_Price

decimal number

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "P_Id": 1,
    "P_Quantity": 2,
    "P_PackSize": 3,
    "P_PackSizeId": 4,
    "Is_A_Deal": true,
    "P_Price": 6.0
  },
  {
    "P_Id": 1,
    "P_Quantity": 2,
    "P_PackSize": 3,
    "P_PackSizeId": 4,
    "Is_A_Deal": true,
    "P_Price": 6.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfEdiaryCartProductModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <EdiaryCartProductModels>
    <Is_A_Deal>true</Is_A_Deal>
    <P_Id>1</P_Id>
    <P_PackSize>3</P_PackSize>
    <P_PackSizeId>4</P_PackSizeId>
    <P_Price>6</P_Price>
    <P_Quantity>2</P_Quantity>
  </EdiaryCartProductModels>
  <EdiaryCartProductModels>
    <Is_A_Deal>true</Is_A_Deal>
    <P_Id>1</P_Id>
    <P_PackSize>3</P_PackSize>
    <P_PackSizeId>4</P_PackSizeId>
    <P_Price>6</P_Price>
    <P_Quantity>2</P_Quantity>
  </EdiaryCartProductModels>
</ArrayOfEdiaryCartProductModels>

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.