POST api/items/create
Request Information
URI Parameters
None.
Body Parameters
ItemModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ItemCode | string |
None. |
|
| CategoryId | integer |
None. |
|
| ItemName | string |
None. |
|
| Unit | string |
None. |
|
| Price | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"ItemCode": "sample string 1",
"CategoryId": 2,
"ItemName": "sample string 3",
"Unit": "sample string 4",
"Price": 5.0
}
application/xml, text/xml
Sample:
<ItemModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SeaShellMarket.Models"> <CategoryId>2</CategoryId> <ItemCode>sample string 1</ItemCode> <ItemName>sample string 3</ItemName> <Price>5</Price> <Unit>sample string 4</Unit> </ItemModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.