- This project uses Node v12
- Install dependencies
npm install
- Start the API
npm run start-be
- Start the dev server
npm run start
- Running the tests in watch mode
npm run test
- The API may fail anytime
- The API may take up to 3 seconds to respond
Returns a list of cars
[
{
id: 1,
make: "Mercedes-Benz",
model: "E-Class",
year: 1990,
color: "#2e904d",
thumbnail: "http://dummyimage.com/174x138.png/cc0000/ffffff",
starred: false,
},
{...}
{
id: 25,
make: "Suzuki",
model: "Grand Vitara",
year: 2005,
color: "#f16882",
thumbnail: "http://dummyimage.com/216x187.png/dddddd/000000",
starred: true,
},
];
Returns a car details
{
id:123,
make:"Jeep",
model:"Compass",
year:2010,
color:"#19b4b3",
thumbnail:"http://dummyimage.com/101x229.png/5fa2dd/ffffff",
starred: false,
}
Return the modified car
Body
{
starred: true | false;
}