POST API/Stock/AddStock
Request Information
URI Parameters
None.
Body Parameters
StockRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| type | string |
None. |
|
| category | string |
None. |
|
| name | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"type": "sample string 1",
"category": "sample string 2",
"name": "sample string 3"
}
application/xml, text/xml
Sample:
<StockRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CarPark.Models.Interaction"> <category>sample string 2</category> <name>sample string 3</name> <type>sample string 1</type> </StockRequest>
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>