This page documents the available REST endpoints for fetching mock vehicle data such as manufacturer, model, fuel type, and price.
/api/vehiclesReturns fake vehicle data. You can filter by type, limit the number of records, or select only specific fields.
type – Vehicle type (e.g., SUV).limit – Number of vehicles to return.fields – Comma-separated list of fields (e.g.,
manufacturer,model,price).
idmanufacturermodeltypefuelcolorvinregistrationNumberyearpriceimageYou can customize the vehicle response by controlling fields and limit.
Example:
GET /api/vehicles?fields=manufacturer,model,price&limit=3
import requests
url = "https://restmancer.vercel.app/api/vehicles"
response = requests.get(url)
print(response.json())
fetch("https://restmancer.vercel.app/api/vehicles")
.then(res => res.json())
.then(data => console.log(data));
const axios = require("axios");
axios.get("https://restmancer.vercel.app/api/vehicles")
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
curl "https://restmancer.vercel.app/api/vehicles"