Performs a GET request on the specified resource_url
and all its
pages.
request_all(
resource_url = "/",
base_url = pgs_server(),
limit = 20L,
verbose = FALSE,
warnings = TRUE,
progress_bar = TRUE
)
A list four named elements:
The URL endpoint.
A string describing the status of the response obtained. It is "OK" if everything went OK or some other string describing the problem.
A list of JSON responses (each response is a string).
Endpoint URL. The endpoint is internally appended to the
base_url
. It should start with a forward slash (/
).
The PGS REST API base URL (one should not need to change its default value).
number of results per page.
whether to print information about each API request.
whether to print warnings related to API requests.
whether to show a progress bar as the paginated resources are retrieved.