go back to TractorService

GET /tractors/search

Searches the database for tractors matching the given request parameters.

Roles that can access this endpoint are Users.

Parameters

name description type default type
request read for query parameters to be used as search criteria; use any combination of fields from the location table using a prefix of tractor or no prefix.

For example, /tractors/search?service_status=A&tractor.current_hub=>1000000&tractor.inspection_date=<=t-100 would find active tractors with over one million miles that haven't been inspected in the last 100 days.

Sorting: To sort the result set, you can provide the following reserved query parameter: orderBy If the orderBy parameter is not provided a default sort of tractor.id+ASC will be applied.

For example, /tractors/search?service_status=A&orderBy=tractor.id+DESC would return all in service tractors sorted ascending by the tractor id. Multiple sort columns can be provided in a comma delimited format. orderBy=prefix.field+direction,prefix.field+direction

Pagination: To page the result set, you can provide the following reserved query parameters: recordLength and recordOffset

For example, /tractors/search?tractor.id=*&recordLength=100&recordOffset=50 would return 100 records starting at the 51st record in the return record set. If no recordLength parameter is provided the search result maximum value in the mobile service control file will be applied.

context HttpServletRequest

Result

List < RowTractor > of type: application/xml application/json

a list of RowTractor objects

Try It Out

Request

- Authentication Help