GET api/OrderItems/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
OrderItemsData| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| OrderID | integer |
None. |
|
| ProductID | integer |
None. |
|
| ProductDescription | string |
None. |
|
| Quantity | integer |
None. |
|
| UnitPrice | decimal number |
None. |
|
| Amount | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"ID": 1,
"OrderID": 2,
"ProductID": 3,
"ProductDescription": "sample string 4",
"Quantity": 5,
"UnitPrice": 6.0,
"Amount": 7.0
}
text/xml
Sample:
<OrderItemsData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SAS.DAL"> <Amount>7</Amount> <ID>1</ID> <OrderID>2</OrderID> <ProductDescription>sample string 4</ProductDescription> <ProductID>3</ProductID> <Quantity>5</Quantity> <UnitPrice>6</UnitPrice> </OrderItemsData>