POST api/Order/AddToCart
Request Information
URI Parameters
None.
Body Parameters
CartModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| ItemId | globally unique identifier |
None. |
|
| UserId | string |
None. |
|
| Quantity | integer |
None. |
|
| Rate | decimal number |
None. |
|
| ItemTitle | string |
None. |
|
| Imageurl | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "c0bcce54-dcb4-402f-bfd7-6582827bc197",
"ItemId": "1bf66293-a7f0-496d-9fc3-d0e909e79a4b",
"UserId": "sample string 3",
"Quantity": 4,
"Rate": 5.0,
"ItemTitle": "sample string 6",
"Imageurl": "sample string 7"
}
application/xml, text/xml
Sample:
<CartModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.STUDY.Models.Store"> <Id>c0bcce54-dcb4-402f-bfd7-6582827bc197</Id> <Imageurl>sample string 7</Imageurl> <ItemId>1bf66293-a7f0-496d-9fc3-d0e909e79a4b</ItemId> <ItemTitle>sample string 6</ItemTitle> <Quantity>4</Quantity> <Rate>5</Rate> <UserId>sample string 3</UserId> </CartModel>
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.