o311_request_all
applies a number of checks to determine when to
stop searching. First, many endpoints return an error if the last page
is exceeded. Thus, if the last page request failed, break.
Second, if exceeding the pagination limit does not return an error, the
response is compared with the previous response. If identical, the
response is discarded and all previous responses returned. Finally,
if the page exceeds max_pages
, the responses up to this point are
returned.
open311 leaves space for endpoints to implement their own request
parameters. These parameters can be provided using dot arguments.
These arguments are not validated or pre-processed. Date-time objects
must be formatted according to the
w3c standard.
Some more common parameters include:
q
: Perform a text search across all requests.
update_after
/updated_before
: Limit request according
to request update dates.
per_page
: Specifiy the maximum number of requests per page.
extensions
: Adds a nested attribute
"extended_attributes"
to the response.
long
/lat
/radius
: Searches for requests in a fixed radius
around a coordinate.
As dot arguments deviate from the open311 standard, they are not guaranteed
to be available for every endpoint and might be removed without further
notice. Refer to the endpoint docs to learn more about custom parameters
(o311_endpoints()$docs
).