Returns a list of motor accident records matching the given request parameters.
Roles that can access this endpoint are Users, Drivers.
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 motoraccident or no prefix.
For example, /motorAccidents/search?motoraccident.driver_type=C&state=AL&motoraccident.accident_date=>=t-100
would find accidents for company drivers in the state of Alabama within 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 motoraccident.accident_date+DESC will be applied.
For example, recordLength and recordOffset
For example, changedAfterDate parameter. Dates are limited to the audit setting and days to keep value in the table properties configuration.
For example, Change Types: To further define the types of changes you want to filter, use the Allowed values: [Add, Update]. Any other value will result in an exception. If the For example, |
context | HttpServletRequest |
a list of RowMotorAccident records Additional attributes:
__statusDescr
This value represents the description of the record status, found in the motoraccident.status
field.__accidentCodeDescr
This value represents the description of the accident code, found in the motoraccident.accident_code
field.__roadConditionDescr
This value represents the description of the road condition, found in the motoraccident.road_cond
field.__roadTypeDescr
This value represents the description of the road type, found in the motoraccident.road_type
field.__weatherCondDescr
This value represents the description of the weather conditions, found in the motoraccident.weather_cond
field.__locationTypeDesc
This value represents the description of the location type, found in the motoraccident.location_type
field.__contribFactorDescr
This value represents the description of the contributing factors, found in the motoraccident.contrib_factor
field.__trailerConfigDescr
This value represents the description of the trailer configuration, found in the motoraccident.trailer_config
field.__unitTypeDescr
This value represents the description of the tractor type, found in the motoraccident.unit_type
field.