🏎️ Car Rental API 🏎️

Car Rental Smart Shop API:oncoming_automobile:

JSON Structure 🚧

{  
	"id": Car ID,
	"car_name": Amount of time in hours,
	"car_type": Type of car,
	"car_picture": Link of car's picture,
	"car_spec": Specification of car,
	"rental_price": Rental price/Hour
}

GET 💭

  1. Show all cars.
http://localhost:port/carslist/
  1. Show specific car.
http://localhost:port/carslist/{id}/

POST 💬

  1. Rent a car.
http://localhost:port/rental/{id}

POST with body contain JSON like below

{  
	"id": Car ID,
	"time": Total of hours you want to rent
}
  1. Add a car.
http://localhost:port/addCar/

POST with body contain JSON like below

{  
	"id": Car ID,
	"car_name": Amount of time in hours,
	"car_type": Type of car,
	"car_picture": Link of car's picture,
	"car_spec": Specification of car,
	"rental_price": Rental price/Hour
}

PUT 💨

  • Update car information.
{  
	"id": Car ID  
	"car_name": Amount of time in hours  
	"car_type": Type of car  
	"car_picture": Link of car's picture  
	"car_spec": Specification of car  
	"rental_price": Rental price/Hour  
}

DELETE 💥

  1. Delete some cars.
http://localhost:port/delete/{id}/
  1. Delete all cars.
http://localhost:port/delete/

Credit:copyright:

  • Made by KimKho:tm:
    • Name : Kosit Kositsrikunakorn
    • Student ID : 60070008