GET models/getlist/{makeId}/{categoryKey}
Retrieves all models (articles) from a certain make with the specified category.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
makeId |
The Id of the make you want to get the models (=articles) for. Eg. 40 for all Apple models. |
integer |
Required |
categoryKey |
Category(key) of the article. Possible values: 'GSM', 'TABLETS'. If you add 'GSM', you'll get the mobile phones models (=articles) for the given make. If you add 'TABLETS' (plural), you get the tablets. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Returns an object of the 'Model' class, containing 'Id' of the model (=article), the 'Name' of the model (=article) and possibly a 'PhotoUrl' (Note: outdated images).
Collection of ModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
|
PhotoUrl | 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:
<ArrayOfModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrainscapeBuyBackApi.Classes"> <Model> <Id>1</Id> <Name>sample string 2</Name> <PhotoUrl>sample string 3</PhotoUrl> </Model> <Model> <Id>1</Id> <Name>sample string 2</Name> <PhotoUrl>sample string 3</PhotoUrl> </Model> </ArrayOfModel>