api-docs icon indicating copy to clipboard operation
api-docs copied to clipboard

/fleet/hos_logs_summary not updated in documentation

Open davidcmoody opened this issue 6 years ago • 1 comments

/fleet/hos_logs_summary returns different data than the example response set, provided in the documentation.

Documentation shows: "cycleRemaining": 252000000, "cycleTomorrow": 252000000, "driverId": 444, "driverName": "Fred Jacobs", "drivingInViolationCycle": 50400000, "drivingInViolationToday": 39600000, "dutyStatus": "OFF_DUTY", "shiftDriveRemaining": 39600000, "shiftRemaining": 50400000, "timeInCurrentStatus": 5000, "timeUntilBreak": 28800000, "vehicleName": "Vehicle 1"

Actually returned: "currentDutyStatusCode":"OFF_DUTY", "cycleRemaining":252000000, "cycleTomorrow":252000000, "driverId":00000, "driverName":"Driver Name", "driveMsToday":0, "drivingInViolationCycle":0, "drivingInViolationToday":0, "onDutyMsToday":0, "pendingDriveMsToday":0, "pendingOnDutyMsToday":0 "shiftDriveRemaining":36000000, "shiftRemaining":54000000, "timeInCurrentStatus":864000000, "timeUntilBreak":-1, "vehicleName":"",

Differences: dutyStatus (documentation) => actually is currentDutyStatusCode driveMsToday is new onDutyMsToday is new pendingDriverMsToday is new pendingOnDutyMsToday is new

davidcmoody avatar May 09 '19 15:05 davidcmoody

Also, should this return "inactive" drivers as well as "active" drivers. Seems like a lot of extra data to be transfering.

What if the default was "active" drivers only, then you have a parameter to allow it to include "inactive" drivers.

davidcmoody avatar May 09 '19 16:05 davidcmoody