GET api/BikeShop/products/{name}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| name | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of ProductDto| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductId | integer |
None. |
|
| Name | string |
None. |
|
| ProductNumber | string |
None. |
|
| Color | string |
None. |
|
| StandardCost | decimal number |
None. |
|
| ListPrice | decimal number |
None. |
|
| Size | string |
None. |
|
| Weight | decimal number |
None. |
|
| ProductSubCategoryID | integer |
None. |
|
| CategoryID | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ProductId": 1,
"Name": "sample string 2",
"ProductNumber": "sample string 3",
"Color": "sample string 4",
"StandardCost": 5.0,
"ListPrice": 6.0,
"Size": "sample string 7",
"Weight": 1.0,
"ProductSubCategoryID": 1,
"CategoryID": 8
},
{
"ProductId": 1,
"Name": "sample string 2",
"ProductNumber": "sample string 3",
"Color": "sample string 4",
"StandardCost": 5.0,
"ListPrice": 6.0,
"Size": "sample string 7",
"Weight": 1.0,
"ProductSubCategoryID": 1,
"CategoryID": 8
}
]
application/xml, text/xml
Sample:
<ArrayOfProductDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/">
<ProductDto>
<CategoryID>8</CategoryID>
<Color>sample string 4</Color>
<ListPrice>6</ListPrice>
<Name>sample string 2</Name>
<ProductId>1</ProductId>
<ProductNumber>sample string 3</ProductNumber>
<ProductSubCategoryID>1</ProductSubCategoryID>
<Size>sample string 7</Size>
<StandardCost>5</StandardCost>
<Weight>1</Weight>
</ProductDto>
<ProductDto>
<CategoryID>8</CategoryID>
<Color>sample string 4</Color>
<ListPrice>6</ListPrice>
<Name>sample string 2</Name>
<ProductId>1</ProductId>
<ProductNumber>sample string 3</ProductNumber>
<ProductSubCategoryID>1</ProductSubCategoryID>
<Size>sample string 7</Size>
<StandardCost>5</StandardCost>
<Weight>1</Weight>
</ProductDto>
</ArrayOfProductDto>