Skip to content

Latest commit

 

History

History
92 lines (69 loc) · 1.18 KB

README.md

File metadata and controls

92 lines (69 loc) · 1.18 KB

Full Stack Kata

  • This project uses Node v12

Starting the project

  1. Install dependencies
npm install
  1. Start the API
npm run start-be
  1. Start the dev server
npm run start
  1. Running the tests in watch mode
npm run test

API Reference

Some considerations

  • The API may fail anytime
  • The API may take up to 3 seconds to respond

[GET] /api/cars

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,
  },
];

[GET] /api/cars/:carId

Returns a car details

{
  id:123,
  make:"Jeep",
  model:"Compass",
  year:2010,
  color:"#19b4b3",
  thumbnail:"http://dummyimage.com/101x229.png/5fa2dd/ffffff",
  starred: false,
}

[PATCH] /api/cars/:carId

Return the modified car

Body

{
  starred: true | false;
}