GET api/v2/FleetMaintenance/historyOperation/{vehicleId}
Retourne la liste de l'historique des opérations d'un véhicule
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
vehicleId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of VehicleHistoryOperationViewModelName | Description | Type | Additional information |
---|---|---|---|
VehicleId |
Représente un véhicule |
globally unique identifier |
None. |
VehicleName | string |
None. |
|
OperationId |
Représente une opération basique |
integer |
None. |
OperationBasicName | string |
None. |
|
OperationCost | decimal number |
None. |
|
Mileage |
Type D'échéance : Kilométrage |
integer |
None. |
EngineDuration |
Type D'échéance : Heures Moteur |
integer |
None. |
OperationUtc |
Type D'échéance : Date |
date |
Data type: Date |
AgentId |
Représente un concessionaire |
globally unique identifier |
None. |
AgentName | string |
None. |
|
Id | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
[ { "VehicleId": "33fabd5e-f8cc-4d05-b72c-8292a7477770", "VehicleName": "sample string 2", "OperationId": 3, "OperationBasicName": "sample string 4", "OperationCost": 1.1, "Mileage": 1, "EngineDuration": 1, "OperationUtc": "2025-08-20T08:07:25.4537334+00:00", "AgentId": "11aeac09-f578-4cb2-ad66-bf80aa644361", "AgentName": "sample string 6", "Id": "c7e99162-7871-4707-8c7a-e4bf220f712c" }, { "VehicleId": "33fabd5e-f8cc-4d05-b72c-8292a7477770", "VehicleName": "sample string 2", "OperationId": 3, "OperationBasicName": "sample string 4", "OperationCost": 1.1, "Mileage": 1, "EngineDuration": 1, "OperationUtc": "2025-08-20T08:07:25.4537334+00:00", "AgentId": "11aeac09-f578-4cb2-ad66-bf80aa644361", "AgentName": "sample string 6", "Id": "c7e99162-7871-4707-8c7a-e4bf220f712c" } ]
application/xml, text/xml
Sample:
<ArrayOfVehicleHistoryOperationViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/B2Fleet.Web.Models.Admin.FleetMaintenance"> <VehicleHistoryOperationViewModel> <AgentId>11aeac09-f578-4cb2-ad66-bf80aa644361</AgentId> <AgentName>sample string 6</AgentName> <EngineDuration>1</EngineDuration> <Id>c7e99162-7871-4707-8c7a-e4bf220f712c</Id> <Mileage>1</Mileage> <OperationBasicName>sample string 4</OperationBasicName> <OperationCost>1.1</OperationCost> <OperationId>3</OperationId> <OperationUtc>2025-08-20T08:07:25.4537334+00:00</OperationUtc> <VehicleId>33fabd5e-f8cc-4d05-b72c-8292a7477770</VehicleId> <VehicleName>sample string 2</VehicleName> </VehicleHistoryOperationViewModel> <VehicleHistoryOperationViewModel> <AgentId>11aeac09-f578-4cb2-ad66-bf80aa644361</AgentId> <AgentName>sample string 6</AgentName> <EngineDuration>1</EngineDuration> <Id>c7e99162-7871-4707-8c7a-e4bf220f712c</Id> <Mileage>1</Mileage> <OperationBasicName>sample string 4</OperationBasicName> <OperationCost>1.1</OperationCost> <OperationId>3</OperationId> <OperationUtc>2025-08-20T08:07:25.4537334+00:00</OperationUtc> <VehicleId>33fabd5e-f8cc-4d05-b72c-8292a7477770</VehicleId> <VehicleName>sample string 2</VehicleName> </VehicleHistoryOperationViewModel> </ArrayOfVehicleHistoryOperationViewModel>