GET api/Brand
Get All Categories
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of BrandViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| BrandId | integer |
None. |
|
| CategoryId | integer |
None. |
|
| BrandName | string |
None. |
|
| ImageUrl | string |
None. |
|
| ColorCode | string |
None. |
|
| CardImageUrl | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"BrandId": 1,
"CategoryId": 2,
"BrandName": "sample string 3",
"ImageUrl": "sample string 4",
"ColorCode": "sample string 5",
"CardImageUrl": "sample string 6"
},
{
"BrandId": 1,
"CategoryId": 2,
"BrandName": "sample string 3",
"ImageUrl": "sample string 4",
"ColorCode": "sample string 5",
"CardImageUrl": "sample string 6"
}
]
application/xml, text/xml
Sample:
<ArrayOfBrandViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Coke.Models.WebApi.ViewModels.Brand">
<BrandViewModel>
<BrandId>1</BrandId>
<BrandName>sample string 3</BrandName>
<CardImageUrl>sample string 6</CardImageUrl>
<CategoryId>2</CategoryId>
<ColorCode>sample string 5</ColorCode>
<ImageUrl>sample string 4</ImageUrl>
</BrandViewModel>
<BrandViewModel>
<BrandId>1</BrandId>
<BrandName>sample string 3</BrandName>
<CardImageUrl>sample string 6</CardImageUrl>
<CategoryId>2</CategoryId>
<ColorCode>sample string 5</ColorCode>
<ImageUrl>sample string 4</ImageUrl>
</BrandViewModel>
</ArrayOfBrandViewModel>