Get the company's complete vehicle fleet
GET/company/vehicles/
This endpoint returns all vehicles registered in the company's fleet. It requires JWT authentication.
Use Cases:
- View the complete list of available vehicles
- Filter vehicles by type, brand, or model (implemented client-side)
- Obtain information for reports or dashboards
Example of a successful response:
{
fleet: [
{
id: veh_123456789,
license_plate: ABC1234,
type: type_987654321,
brand: Volvo,
model: FH16,
year: 2022,
images: [https://storage.example.com/vehicles/abc123.jpg],
created_at: 2023-01-15T10:30:00Z,
updated_at: 2023-01-15T10:30:00Z
}
],
count: 1
}
Responses
- 200
- 401
Vehicle list successfully obtained.
Unauthorized. The JWT token is invalid, has expired, or does not have permission to access this resource. A valid token must be included in the Authorization header: Bearer {token}