GET
/trucks List Trucks
Returns a Spring Page envelope (content, page, size, totalElements, totalPages). Every field below supports criteria filters: append an operator suffix to the field name — for example make.equals, model.contains, year.greaterThan, active.in, vin.specified. The explorer exposes the most common filters; see the Filtering & Sorting guide for the full operator grammar.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
unitNumber.equals | query | string | Exact unit-number match.
e.g. 1042 |
vin.equals | query | string | Exact VIN match. |
make.contains | query | string | Make contains substring (case-insensitive). |
model.contains | query | string | Model contains substring (case-insensitive). |
active.equals | query | boolean | Filter by active flag. truefalse |
year.equals | query | integer | Exact model year. |
companyId.equals | query | integer | Filter by owning company id. |
page | query | integer | Zero-based page index (0..N).
e.g. 0 |
size | query | integer | Page size. Default 20.
e.g. 20 |
sort | query | string | Sort as `property,(asc|desc)`. Repeatable for multi-key sort.
e.g. unitNumber,asc |
The explorer shows the most common query parameters. For the full
operator grammar (
.equals, .contains, .greaterThan, .in, .specified …) see the
Filtering & Sorting
guide.
Response
Status: Stable. Try the request in the panel on the right to see a live response.