Brand

Il brand rappresenta il marchio costruttore del veicolo facente parte del database di AutoSuperMarket, da utilizzare per pubblicare un annuncio.

Non trovi un brand?

Contatta il supporto tecnico e richiedi l'aggiunta custom di un brand non presente.

L'oggetto brand

Attributi

id integer

Identificatore univoco per l'oggetto.

name string

Nome del brand.

L'oggetto Dealer
{
    "id": 1,
    "name": "Fiat"
}

Ottieni i brand

Recupera la lista di tutti i brand da utilizzare per pubblicare un nuovo annuncio.

Parametri

Nessun paramentro.

Risposta

Restituisce un array di oggetti brand.

GET /listing/brands
curl -X GET \
'https://api.autosupermarket.it/listing/brands' \
-H 'Content-Type: application/json' \
-H 'X-Auth-Token: {your-token-here}'
Risposta
[
  {
    "id": 1,
    "name": "Abarth"
  },
  {
    "id": 2,
    "name": "Aixam"
  },
  {
    "id": 3,
    "name": "Alfa Romeo"
  }
]

Cerca il brand

Recupera l'oggetto brand data una stringa

Parametri

query required string

Query di ricerca.

Risposta

Restituisce un oggetto brand.

POST /listing/brands/search
curl -X POST \
'https://api.autosupermarket.it/listing/brands/search' \
-H 'Content-Type: application/json' \
-d '{"query":"abarth"}' \
-H 'X-Auth-Token: {your-token-here}'
Risposta

  {
    "id": 1,
    "name": "Abarth"
  }