POST api/Products/SetProduct
Request Information
URI Parameters
None.
Body Parameters
Products| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Code | string |
None. |
|
| Name | string |
None. |
|
| Category | string |
None. |
|
| Price | decimal number |
None. |
|
| Quantity | decimal number |
None. |
|
| Status | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Code": "sample string 1",
"Name": "sample string 2",
"Category": "sample string 3",
"Price": 1.1,
"Quantity": 1.1,
"Status": true
}
application/xml, text/xml
Sample:
<Products xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models"> <Category>sample string 3</Category> <Code>sample string 1</Code> <Id>1</Id> <Name>sample string 2</Name> <Price>1.1</Price> <Quantity>1.1</Quantity> <Status>true</Status> </Products>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>