Car Rental Smart Shop API:oncoming_automobile:
{
"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
}
- Show all cars.
http://localhost:port/carslist/
- Show specific car.
http://localhost:port/carslist/{id}/
- 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
}
- 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
}
- 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 some cars.
http://localhost:port/delete/{id}/
- Delete all cars.
http://localhost:port/delete/
- Made by KimKho:tm:
- Name : Kosit Kositsrikunakorn
- Student ID : 60070008