GET makes/getlist/{categoryKey}
Retrieves all the makes per category.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
categoryKey |
Category(key) of the article. Possible values: 'GSM', 'TABLETS'. If you add 'GSM', you'll get the makes having mobile phones. If you add 'TABLETS' (plural), you get makes which are relevant for tablets. Note: Id's of the makes are shared among all categories. I.e.: Apple is always ID 40 for both phones and tablets. Not all phone makes are relevant for tablets. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Returns a list of makes (object 'Make') for the given category. The 'Make' object contains the Id and the Name of the make. PhotoUrl may be added but is possibly outdated.
Collection of MakeName | Description | Type | Additional information |
---|---|---|---|
Id |
Gets or sets the id of the make. |
integer |
None. |
Name |
Gets or sets the name of the make. |
string |
None. |
PhotoUrl |
Gets or sets the photo URL. |
string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "Name": "sample string 2", "PhotoUrl": "sample string 3" }, { "Id": 1, "Name": "sample string 2", "PhotoUrl": "sample string 3" } ]
application/xml, text/xml
Sample:
<ArrayOfMake xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrainscapeBuyBackApi.Classes"> <Make> <Id>1</Id> <Name>sample string 2</Name> <PhotoUrl>sample string 3</PhotoUrl> </Make> <Make> <Id>1</Id> <Name>sample string 2</Name> <PhotoUrl>sample string 3</PhotoUrl> </Make> </ArrayOfMake>