POST api/Products
Request Information
URI Parameters
None.
Body Parameters
Product| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Ingredients | string |
None. |
|
| MOAGroup | integer |
None. |
|
| UserProducts | string |
None. |
|
| Repeat | boolean |
None. |
|
| Total | integer |
None. |
|
| Color | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Ingredients": "sample string 3",
"MOAGroup": 4,
"UserProducts": "sample string 5",
"Repeat": true,
"Total": 7,
"Color": 8
}
application/xml, text/xml
Sample:
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Enlist.Models"> <Color>8</Color> <Id>1</Id> <Ingredients>sample string 3</Ingredients> <MOAGroup>4</MOAGroup> <Name>sample string 2</Name> <Repeat>true</Repeat> <Total>7</Total> <UserProducts>sample string 5</UserProducts> </Product>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Product| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Ingredients | string |
None. |
|
| MOAGroup | integer |
None. |
|
| UserProducts | string |
None. |
|
| Repeat | boolean |
None. |
|
| Total | integer |
None. |
|
| Color | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Ingredients": "sample string 3",
"MOAGroup": 4,
"UserProducts": "sample string 5",
"Repeat": true,
"Total": 7,
"Color": 8
}
application/xml, text/xml
Sample:
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Enlist.Models"> <Color>8</Color> <Id>1</Id> <Ingredients>sample string 3</Ingredients> <MOAGroup>4</MOAGroup> <Name>sample string 2</Name> <Repeat>true</Repeat> <Total>7</Total> <UserProducts>sample string 5</UserProducts> </Product>