GET api/Brands
Gets the list of brands available
Request Information
URI Parameters
None.
URI Example
api/Brands
Body Parameters
None.
Response Information
Resource Description
A wrapper class containing the brands
Oresto.API.Models.GET.Brands.BrandData| Name | Description | Type | Additional information |
|---|---|---|---|
| Brands |
The list of brands |
Collection of Oresto.API.Models.GET.Brands.Brand |
None. |
| Errors |
Possible errors that were experienced when processing the request |
Collection of string |
None. |
| RequestInformation |
Additional information about the request |
Oresto.API.Models.Shared.RequestInformation |
None. |
Response Formats
application/json, text/json
Sample:
{
"Brands": [
{
"Id": 1,
"Name": "sample string 2",
"Active": true
},
{
"Id": 1,
"Name": "sample string 2",
"Active": true
}
],
"RequestInformation": {
"RequestDuration": 1,
"WholesalerId": 2,
"UserId": 3
},
"Errors": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<BrandData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.GET.Brands">
<Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.Shared">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Errors>
<RequestInformation xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.Shared">
<RequestDuration>1</RequestDuration>
<UserId>3</UserId>
<WholesalerId>2</WholesalerId>
</RequestInformation>
<Brands>
<Brand>
<Active>true</Active>
<Id>1</Id>
<Name>sample string 2</Name>
</Brand>
<Brand>
<Active>true</Active>
<Id>1</Id>
<Name>sample string 2</Name>
</Brand>
</Brands>
</BrandData>