GET api/stock
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of Stock| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductId | integer |
None. |
|
| ProductName | string |
None. |
|
| QuantityAvailable | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ProductId": 1,
"ProductName": "sample string 2",
"QuantityAvailable": 3
},
{
"ProductId": 1,
"ProductName": "sample string 2",
"QuantityAvailable": 3
}
]
application/xml, text/xml
Sample:
<ArrayOfStock xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/zAtelierApi">
<Stock>
<ProductId>1</ProductId>
<ProductName>sample string 2</ProductName>
<QuantityAvailable>3</QuantityAvailable>
</Stock>
<Stock>
<ProductId>1</ProductId>
<ProductName>sample string 2</ProductName>
<QuantityAvailable>3</QuantityAvailable>
</Stock>
</ArrayOfStock>