API Documentation

This application retrieves information from my personal collection, with API endpoints created using php and MySQL.

Endpoint: https://horta.classicgames.com.br/api/collectables/models

This endpoint retrieves a list of of all models.

Method: GET

Response:

[
  {
    "id": "543",
    "year": "2020",
    "model": "CORVETTE STINGRAY",
    "maker": "BBurago",
    "scale": "1:18",
    "title": "2020  CORVETTE STINGRAY"
  },
  {
    "id": "305",
    "year": "2020",
    "driver": "LEWIS HAMILTON",
    "team": "MERCEDES-BENZ",
    "model": "W11 EQ PERFORMANCE",
    "maker": "Minichamps",
    "scale": "1:18",
    "title": "LEWIS HAMILTON 2020 MERCEDES-BENZ W11 EQ PERFORMANCE"
  }
]

Endpoint: https://horta.classicgames.com.br/api/collectables/models/?id={id}

This endpoint retrieves all details of a specific model.

Method: GET

Response:

[
  {
    "id": "305",
    "year": "2020",
    "number": "44",
    "maker": "Minichamps",
    "category": "F1",
    "scale": "1:18",
    "additional_info": "Styrie GP",
    "SKU": "4012138749634",
    "champion": "Yes",
    "limited_edition": "Yes",
    "driver": "LEWIS HAMILTON",
    "characteristics": "DIECAST MODEL, MOVABLE FRONT WHEELS",
    "contents": "BOX, MODEL, STAND",
    "model": "W11 EQ PERFORMANCE",
    "team": "MERCEDES-BENZ",
    "image": "https://horta.classicgames.com.br/collectables/images/new_305 (5.jpg"
  }
]

Endpoint: https://horta.classicgames.com.br/api/collectables/drivers

This endpoint retrieves a list of of all drivers.

Method: GET

Response:

[
  {
    "name": "A. J. FOYT",
    "id": "138"
  },
  {
    "name": "ADRIÁN FERNÁNDEZ",
    "id": "285"
  }
]

Endpoint: https://horta.classicgames.com.br/api/collectables/drivers/?id={id}

This endpoint retrieves a list of all models of a specific driver.

Method: GET

Response:

[
  {
    "id": "107",
    "title": "ALAIN PROST 1993 WILLIAMS FW15C"
  },
  {
    "id": "84",
    "title": "ALAIN PROST 1990 FERRARI F1-90"
  }
]

Endpoint: https://horta.classicgames.com.br/api/collectables/teams

This endpoint retrieves a list of of all teams.

Method: GET

Response:

[
  {
    "name": "ABT SCHAEFFLER",
    "id": "46"
  },
  {
    "name": "ADT CHAMPION RACING",
    "id": "99"
  }
]

Endpoint: https://horta.classicgames.com.br/api/collectables/teams/?id={id}

This endpoint retrieves a list of all models of a specific team.

Method: GET

Response:

[
  {
    "id": "303",
    "title": "CHARLES LECLERC 2019 FERRARI SF90"
  },
  {
    "id": "301",
    "title": "KIMI RAIKKONEN 2018 FERRARI SF71H"
  }
]

Endpoint: https://horta.classicgames.com.br/api/collectables/makers

This endpoint retrieves a list of of all makers.

Method: GET

Response:

[
  {
    "name": "Action",
    "id": "36"
  },
  {
    "name": "Anson Models",
    "id": "34"
  }
]

Endpoint: https://horta.classicgames.com.br/api/collectables/makers/?id={id}

This endpoint retrieves a list of all models of a specific maker.

Method: GET

Response:

[
  {
    "id": "39",
    "title": "GILLES VILLENEUVE 1982 FERRARI 126C2"
  },
  {
    "id": "476",
    "title": "1953 JAGUAR XK 120 COUPE"
  }
]

Endpoint: https://horta.classicgames.com.br/api/collectables/years

This endpoint retrieves a list of of all years.

Method: GET

Response:

[
  {
    "name": "1999",
    "id": "1999"
  },
  {
    "name": "2000",
    "id": "2000"
  }
]

Endpoint: https://horta.classicgames.com.br/api/collectables/years/?id={id}

This endpoint retrieves a list of all models of a specific year.

Method: GET

Response:

[
  {
    "id": "39",
    "title": "GILLES VILLENEUVE 1982 FERRARI 126C2"
  },
]

Endpoint: https://horta.classicgames.com.br/api/collectables/images

This endpoint retrieves a random collectable image

Method: GET

Response:

[
  {
    "image":"https://horta.classicgames.com.br/collectables/images/new_399 133294_5-3.jpg"
  },
]

Endpoint: https://horta.classicgames.com.br/api/collectables/images/?id={number}

This endpoint retrieves get X random images. Max 30

Method: GET

Response:

[
  {
    "image":"https://horta.classicgames.com.br/collectables/images/c412t2ja (8).jpg"
  },
  {
    "image":"https://horta.classicgames.com.br/collectables/images/0743 (3).jpg"
  }
]

Endpoint: https://horta.classicgames.com.br/api/collectables/images/?img={id}

This endpoint retrieves get all images from a specific model.

Method: GET

Response:

[
  {
    "image": "https://horta.classicgames.com.br/collectables/images/0783 (1).jpg",
    "id": 0
  },
  {
    "image": "https://horta.classicgames.com.br/collectables/images/0783 (2).jpg",
    "id": 1
  }
]