Entidad · vehicle_reservations
Vehicle Reservation Schema
Campos
Vehicle Reservation Schema
Schema for validating vehicle reservation / Fahrzeugreservierung entities
vehicleId
Reference to vehicle being reserved
driverId
Reference to the fleet driver / Fahrer reserving the vehicle
startDateTime
Reservation start (ISO 8601)
endDateTime
Reservation end (ISO 8601)
purpose
Purpose of the reservation / Zweck
máx. 500 caracteresadmite null
notes
Additional notes
máx. 2000 caracteresadmite null
status
Reservation status
Valores
REQUESTEDCONFIRMEDACTIVECOMPLETEDCANCELLEDValor por defecto: "CONFIRMED"
vehicleLicensePlate
Denormalized license plate for display
máx. 20 caracteresadmite null
vehicleLabel
Denormalized vehicle make + model for display
máx. 200 caracteresadmite null
driverName
Denormalized driver full name for display
máx. 200 caracteresadmite null
Ningún campo coincide con el filtro.
Endpoints estándar
Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:
GET /api/v1/vehicle_reservations— Lista, paginada y filtrableGET /api/v1/vehicle_reservations/<id>— Una entidadPOST /api/v1/vehicle_reservations— CrearPATCH /api/v1/vehicle_reservations/<id>— Actualización parcialDELETE /api/v1/vehicle_reservations/<id>— Eliminación lógicaGET /api/v1/vehicle_reservations/<id>/timeline— Auditoría y actividades