Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 591 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 591 Bytes

CarManagement

A Simple spring boot application which performs CRUD operations for CAR,DRIVER entities.

This application exposes endpoints for Driver to Select a Car

POST -  /associateCarToDriver/{CAR-LICENSE-PLATE-NUMBER}/{DRIVER-LICENSE-NuMBER}
PUT -  /disAssociateCarToDriver/{CAR-LICENSE-PLATE-NUMBER}/{DRIVER-LICENSE-NuMBER}

POST - /cars
sample json request body :  {
   "licensePlate":"CAR2",
   "seatCount":2,
   "engineType":"DIESEL"
}

POST - /drivers
sample json request body:{
   "name":"john",
   "address":"Mumbai",
   "phoneNumber":"123456890",
   "licenseNumber":"DL2"
}