Get vehicle details
GET/truckers/vehicles/:id
Returns the complete information of a specific vehicle in the fleet, identified by its unique ID.
Use Cases:
- View detailed information of a vehicle
- Display data for maintenance or inspection
- Obtain information for editing
Parameters:
- id (required): Unique ID of the vehicle (MongoDB ObjectId)
Response Example:
{
  _id: 60a1b2c3d4e5f67890123456,
  licensePlate: 1234ABC,
  type: RIGID,
  brand: Volvo,
  model: FH16,
  year: 2022,
  images: [https://storage.example.com/vehicles/1234ABC.jpg],
  createdAt: 2022-05-15T10:00:00Z,
  updatedAt: 2022-05-15T10:00:00Z
}
Request
Responses
- 200
- 401
- 403
- 404
Vehicle details obtained successfully.
Unauthorized
Authorization or validation error.
Occurs when the user lacks permissions or the data is invalid.
Vehicle not found