//User managment
URL: api/register Method: POST
Request body:
{ "firstName": "name", "lastName": "lastname", "email": "[email protected]", "password": "password" }
URL: api/login Method: POST
Request body:
{ "email": "[email protected]", "password": "password" }
//Cars Route |||||
URL: api/cars Method: GET
URL: api/cars Method: POST
Request body:
{ "brand": "brand", "color": "color", "price": "price", "img": "img-url" }
URL: api/cars/id Method: PUT
Request body:
{ "brand": "updated-brand", "color": "updated-color", "price": "updated-price", "img": "updated-img-url" }
URL: api/cars/id Method: DELETE