POST api/Application/PostAddCart
Request Information
URI Parameters
None.
Body Parameters
CartViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| Quntity | integer |
None. |
|
| Price | decimal number |
None. |
|
| ProductID | integer |
None. |
|
| UserID | integer |
None. |
|
| PlaceTypeID | integer |
None. |
|
| PlaceID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"Quntity": 2,
"Price": 3.0,
"ProductID": 4,
"UserID": 5,
"PlaceTypeID": 1,
"PlaceID": 1
}
text/html
Sample:
{"ID":1,"Quntity":2,"Price":3.0,"ProductID":4,"UserID":5,"PlaceTypeID":1,"PlaceID":1}
application/xml, text/xml
Sample:
<CartViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Authr.Web.Api.Models"> <ID>1</ID> <PlaceID>1</PlaceID> <PlaceTypeID>1</PlaceTypeID> <Price>3</Price> <ProductID>4</ProductID> <Quntity>2</Quntity> <UserID>5</UserID> </CartViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.