POST API/Stock/GetStockList
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
ItemResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| message | string |
None. |
|
| items | Collection of Item |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"message": "sample string 2",
"items": [
{
"id": 1,
"type": "sample string 1",
"category": "sample string 2",
"code": "sample string 3",
"name": "sample string 4",
"quantity": 1,
"cause": "sample string 5",
"NormVehicle": 1,
"NormTruck": 1,
"NumberOfInspectors": 1
},
{
"id": 1,
"type": "sample string 1",
"category": "sample string 2",
"code": "sample string 3",
"name": "sample string 4",
"quantity": 1,
"cause": "sample string 5",
"NormVehicle": 1,
"NormTruck": 1,
"NumberOfInspectors": 1
}
]
}
application/xml, text/xml
Sample:
<ItemResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CarPark.Models.Interaction">
<items xmlns:d2p1="http://schemas.datacontract.org/2004/07/CarPark.Models.Common">
<d2p1:Item>
<d2p1:NormTruck>1</d2p1:NormTruck>
<d2p1:NormVehicle>1</d2p1:NormVehicle>
<d2p1:NumberOfInspectors>1</d2p1:NumberOfInspectors>
<d2p1:category>sample string 2</d2p1:category>
<d2p1:cause>sample string 5</d2p1:cause>
<d2p1:code>sample string 3</d2p1:code>
<d2p1:id>1</d2p1:id>
<d2p1:name>sample string 4</d2p1:name>
<d2p1:quantity>1</d2p1:quantity>
<d2p1:type>sample string 1</d2p1:type>
</d2p1:Item>
<d2p1:Item>
<d2p1:NormTruck>1</d2p1:NormTruck>
<d2p1:NormVehicle>1</d2p1:NormVehicle>
<d2p1:NumberOfInspectors>1</d2p1:NumberOfInspectors>
<d2p1:category>sample string 2</d2p1:category>
<d2p1:cause>sample string 5</d2p1:cause>
<d2p1:code>sample string 3</d2p1:code>
<d2p1:id>1</d2p1:id>
<d2p1:name>sample string 4</d2p1:name>
<d2p1:quantity>1</d2p1:quantity>
<d2p1:type>sample string 1</d2p1:type>
</d2p1:Item>
</items>
<message>sample string 2</message>
<success>true</success>
</ItemResponse>