Restmancer API - Vehicles
This page documents the available REST endpoints for fetching mock vehicle data such as manufacturer, model, fuel type, and price.
GET /api/vehicles
Returns fake vehicle data. You can filter by type, limit the number of records, or select only specific fields.
Optional Query Parameters:
type– Vehicle type (e.g.,SUV).limit– Number of vehicles to return.fields– Comma-separated list of fields (e.g.,manufacturer,model,price).
Examples:
Fields Available
idmanufacturermodeltypefuelcolorvinregistrationNumberyearpriceimage
You 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"