GET api/Alphabeticallistofproducts/{id}
Returns a Alphabeticallistofproducts record based on specified ID
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The ID of Alphabeticallistofproducts data |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
AlphabeticallistofproductsData| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductID | integer |
None. |
|
| ProductName | string |
None. |
|
| SupplierID | integer |
None. |
|
| CategoryID | integer |
None. |
|
| QuantityPerUnit | string |
None. |
|
| UnitPrice | decimal number |
None. |
|
| UnitsInStock | integer |
None. |
|
| UnitsOnOrder | integer |
None. |
|
| ReorderLevel | integer |
None. |
|
| Discontinued | boolean |
None. |
|
| CategoryName | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ProductID": 1,
"ProductName": "sample string 2",
"SupplierID": 3,
"CategoryID": 4,
"QuantityPerUnit": "sample string 5",
"UnitPrice": 6.0,
"UnitsInStock": 7,
"UnitsOnOrder": 8,
"ReorderLevel": 9,
"Discontinued": true,
"CategoryName": "sample string 11"
}
text/xml
Sample:
<AlphabeticallistofproductsData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NorthwindAPI.Models"> <CategoryID>4</CategoryID> <CategoryName>sample string 11</CategoryName> <Discontinued>true</Discontinued> <ProductID>1</ProductID> <ProductName>sample string 2</ProductName> <QuantityPerUnit>sample string 5</QuantityPerUnit> <ReorderLevel>9</ReorderLevel> <SupplierID>3</SupplierID> <UnitPrice>6</UnitPrice> <UnitsInStock>7</UnitsInStock> <UnitsOnOrder>8</UnitsOnOrder> </AlphabeticallistofproductsData>