Performs a GET request on the specified resource_url
.
gc_request(
resource_url = "/",
base_url = gwas_rest_api_base_url,
verbose = FALSE,
warnings = TRUE,
flatten = FALSE
)
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 otherwise.
The parsed JSON as a nested list, as returned by
jsonlite::fromJSON
.
Endpoint URL. The endpoint is internally appended to the
base_url
. It should start with a forward slash (/
).
The GWAS REST API base URL (one should not need to change its default value).
Whether to be chatty.
Whether to print warnings.
Whether to flatten out the list returned by
jsonlite::fromJSON
.