POST api/ShoppingCartElements
Request Information
URI Parameters
None.
Body Parameters
ShoppingCartElement| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| productId | integer |
Required |
|
| code | string |
None. |
|
| name | string |
None. |
|
| unit | string |
None. |
|
| netPrice | decimal number |
None. |
|
| grossPrice | decimal number |
None. |
|
| oldNetPrice | decimal number |
None. |
|
| oldGrossPrice | decimal number |
None. |
|
| quantity | decimal number |
Required |
|
| currency | string |
None. |
|
| image | Collection of byte |
None. |
|
| promotion | boolean |
None. |
|
| top | boolean |
None. |
|
| topText | string |
None. |
|
| newProduct | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"productId": 2,
"code": "sample string 3",
"name": "sample string 4",
"unit": "sample string 5",
"netPrice": 6.0,
"grossPrice": 7.0,
"oldNetPrice": 8.0,
"oldGrossPrice": 9.0,
"quantity": 10.1,
"currency": "sample string 11",
"image": "QEA=",
"promotion": true,
"top": true,
"topText": "sample string 14",
"newProduct": true
}
application/xml, text/xml
Sample:
<ShoppingCartElement xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiGelato.Models"> <code>sample string 3</code> <currency>sample string 11</currency> <grossPrice>7</grossPrice> <id>1</id> <image>QEA=</image> <name>sample string 4</name> <netPrice>6</netPrice> <newProduct>true</newProduct> <oldGrossPrice>9</oldGrossPrice> <oldNetPrice>8</oldNetPrice> <productId>2</productId> <promotion>true</promotion> <quantity>10.1</quantity> <top>true</top> <topText>sample string 14</topText> <unit>sample string 5</unit> </ShoppingCartElement>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.