POST api/products
Request Information
URI Parameters
None.
Body Parameters
ProductDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
|
| Name | string |
None. |
|
| Category | string |
None. |
|
| CategoryId | integer |
None. |
|
| Cost | integer |
None. |
|
| Price | integer |
None. |
|
| Stock | integer |
None. |
|
| Brand | string |
None. |
|
| Desc | string |
None. |
|
| Emoji | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "sample string 1",
"Name": "sample string 2",
"Category": "sample string 3",
"CategoryId": 1,
"Cost": 4,
"Price": 5,
"Stock": 6,
"Brand": "sample string 7",
"Desc": "sample string 8",
"Emoji": "sample string 9"
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.