- Clone this repository
- Run
go build .
to start the server - Open your browser and go to
http://localhost:8080/api/v1
followed by the endpoint you want to test
/health
- Returns the health status of the server
- GET
/cars
- Returns all cars - POST
/cars
- Creates a new car - PUT
/cars/{id}
- Updates a car by id - DELETE
/cars/{id}
- Deletes a car by id