Entidad · vehicle_service_logs
Vehicle Service Log Schema
Campos
Vehicle Service Log Schema
Schema for validating vehicle service / maintenance log entities
vehicleId
Reference to the vehicle
date
Date of the service
serviceType
Type of service performed
Valores
INSPECTIONOIL_CHANGEBRAKE_SERVICETIRE_CHANGEREPAIRTUVAUOTHERdescription
Service description
1–2000 caracteres
provider
Service provider / workshop (Werkstatt)
máx. 200 caracteresadmite null
cost
Service cost in EUR as decimal string
Patrónadmite null
mileageKm
Vehicle mileage at time of service
≥ 0admite null
nextDueDate
Next service due date
admite null
nextDueKm
Next service due at this mileage
≥ 0admite null
attachmentIds
Attachment file IDs (invoices, reports)
Valor por defecto: []
notes
Additional notes
máx. 2000 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_service_logs— Lista, paginada y filtrableGET /api/v1/vehicle_service_logs/<id>— Una entidadPOST /api/v1/vehicle_service_logs— CrearPATCH /api/v1/vehicle_service_logs/<id>— Actualización parcialDELETE /api/v1/vehicle_service_logs/<id>— Eliminación lógicaGET /api/v1/vehicle_service_logs/<id>/timeline— Auditoría y actividades