POST api/cart/add
Request Information
URI Parameters
None.
Body Parameters
AddToCartRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | integer |
None. |
|
| BuyerId | integer |
None. |
|
| DeviceId | string |
None. |
|
| BookId | integer |
None. |
|
| Quantity | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"BuyerId": 1,
"DeviceId": "sample string 1",
"BookId": 2,
"Quantity": 3
}
application/xml, text/xml
Sample:
<AddToCartRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/bookLib_APIs.Controllers"> <BookId>2</BookId> <BuyerId>1</BuyerId> <DeviceId>sample string 1</DeviceId> <Quantity>3</Quantity> <UserId>1</UserId> </AddToCartRequest>
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.