GET api/Brands/GetBrand/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Brand| Name | Description | Type | Additional information |
|---|---|---|---|
| BrandId | integer |
None. |
|
| BrandName | string |
Required String length: inclusive between 0 and 100 |
|
| BrandIsInUse | boolean |
None. |
|
| CompanyId | integer |
None. |
|
| ObjectState | ObjectState |
None. |
Response Formats
application/json, text/json
Sample:
{
"brandId": 1,
"brandName": "sample string 2",
"brandIsInUse": true,
"companyId": 4,
"objectState": 0
}
application/xml, text/xml
Sample:
<Brand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Models"> <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState> <BrandId>1</BrandId> <BrandIsInUse>true</BrandIsInUse> <BrandName>sample string 2</BrandName> <CompanyId>4</CompanyId> </Brand>