GET api/OrderDetails
Returns list of all OrderDetails Data
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of OrderDetailsDataName | 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 }, { "OrderID": 1, "ProductID": 2, "UnitPrice": 3.0, "Quantity": 4, "Discount": 5.1 } ]
text/xml
Sample:
<ArrayOfOrderDetailsData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NorthwindAPI.Models"> <OrderDetailsData> <Discount>5.1</Discount> <OrderID>1</OrderID> <ProductID>2</ProductID> <Quantity>4</Quantity> <UnitPrice>3</UnitPrice> </OrderDetailsData> <OrderDetailsData> <Discount>5.1</Discount> <OrderID>1</OrderID> <ProductID>2</ProductID> <Quantity>4</Quantity> <UnitPrice>3</UnitPrice> </OrderDetailsData> </ArrayOfOrderDetailsData>