implement endpoint method to delete a vehicle #42

Closed
opened 2025-10-21 16:56:32 +00:00 by duarteneves5 · 1 comment
duarteneves5 commented 2025-10-21 16:56:32 +00:00 (Migrated from github.com)

to complete this task the method should be able to sucessfully delete a vehicle entity from the database.

to delete a vehicle entity it must be given a valid vehicle registration, that means a vehicle that is in the database.

note that some rules for the delete must be followed:

  • [optional] to delete a vehicle the user needs to either have the vehicle's service assigned to him or be an admin (to be debated)
  • [optional] instead of deleting in the database we could have a flag collumn to set the vehicle to deactivated, this way we keep the information and not load it on an list of active vehicles for example
to complete this task the method should be able to sucessfully delete a vehicle entity from the database. to delete a vehicle entity it must be given a valid vehicle registration, that means a vehicle that is in the database. note that some rules for the delete must be followed: - [optional] to delete a vehicle the user needs to either have the vehicle's service assigned to him or be an admin (to be debated) - [optional] instead of deleting in the database we could have a flag collumn to set the vehicle to deactivated, this way we keep the information and not load it on an list of active vehicles for example
AndreFerreira5 commented 2026-01-22 23:07:32 +00:00 (Migrated from github.com)

this issue has already been integrated in the maion branch, closing...

this issue has already been integrated in the maion branch, closing...
Sign in to join this conversation.
No description provided.