GET api/OrderDetails/{id}
Returns a OrderDetails record based on specified ID
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The ID of OrderDetails data |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
OrderDetailsData| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderID | integer |
None. |
|
| ProductID | integer |
None. |
|
| UnitPrice | decimal number |
None. |
|
| Quantity | integer |
None. |
|
| Discount | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"OrderID": 1,
"ProductID": 2,
"UnitPrice": 3.0,
"Quantity": 4,
"Discount": 5.1
}
text/xml
Sample:
<OrderDetailsData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NorthwindAPI.Models"> <Discount>5.1</Discount> <OrderID>1</OrderID> <ProductID>2</ProductID> <Quantity>4</Quantity> <UnitPrice>3</UnitPrice> </OrderDetailsData>