This function retrieves a list of root folders from a specific repository, identified by the provided URL. It makes an HTTP request to a server endpoint to fetch this information.
Arguments
- url
A character string representing the base URL of the Integral repository. Defaults to
getOption("integral_url")
.- page_size
A numeric vector defining the page size or maximum number of records to be returned. The default
pageSize
parameter for the endpoint is `100`, this value can be increased by setting theintegral_page_size
inoptions()
e.g.,options("integral_page_size" = 500)
.
Value
A named list where each element corresponds to a root folder in the specified repository. The list's names are set to the captions of the folders for easy reference. Each list element is an object containing details about the folder.
Details
The function sends a request to a predefined URL with an encoded API key included in the request headers. The server's response is processed to extract information about each root folder. The names of the folders (captions) are used to name the elements of the returned list for easier access.