RijoBiju / CarManagement

0 stars 0 forks source link

Regarding API endpoints #1

Closed AkhilLV closed 1 hour ago

AkhilLV commented 2 hours ago

Endpoints with request formats

Cars

{
  carBrand,
  carModel,
  carPlate
}
{
  carBrand,
  carModel,
  carPlate,
  yearOfManufacture,
  mileage
}
{
  msp,
  customerDeliveryFees,
  marketValue
}

Response format:

{
  carId,
  carBrand,
  carModel,
  carPlate,
  yearOfManufacture,
  mileage,
  Minimum Selling Price,
  Customer Delivery Fee,
  Present market value
}
[
  {
  carId,
  carBrand,
  carModel,
  carPlate,
  yearOfManufacture,
  mileage,
  Minimum Selling Price,
  },
  ...
]
{
  archive: true | false
}

Expense Types

{
  expenseName,
  colorCode
}
[
  {
  expenseName,
  colorCode
  },
  ...
]
RijoBiju commented 2 hours ago

i don't find this to be an issue

RijoBiju commented 2 hours ago

@AkhilLV shouldn't there be a link between expensetype and car ?

AkhilLV commented 2 hours ago

@AkhilLV shouldn't there be a link between expensetype and car ?

Yes. But this is not for an individual expense. This is for an expense type image

RijoBiju commented 1 hour ago

pleasure working with you. pls write to me if necessary.