read | R Documentation |
read method to access bfabric REST
read(
login = NULL,
webservicepassword = NULL,
endpoint = "workunit",
query,
posturl = "http://localhost:5000/",
as_data_frame = FALSE
)
login |
bfabric login |
webservicepassword |
bfabric webservicepassword, visible when you check your user details in the bfabric system. |
endpoint |
the endpoint, e.g., |
query |
e,g, |
posturl |
POST url, default is |
as_data_frame |
if TRUE it returns a data.frame object. |
a nested list object
# ensure you have login and password
Rprofile <- file.path(Sys.getenv("HOME"), ".Rprofile")
source(Rprofile, local = TRUE)
res.sample <- bfabricShiny::read(login = login,
webservicepassword = webservicepassword,
endpoint = 'sample',
query = list(containerid = 27053),
as_data_frame = TRUE)
res.sample |> subset(select=c("_id", "name", "groupingvar.name"))
res.file <- bfabricShiny::read(login, webservicepassword,
endpoint = 'resource',
query = list('filechecksum' = '127f0c5b6352a326f9a6c8458d59d921'),
)
res.workunit <- bfabricShiny::read(login, webservicepassword,
endpoint='workunit',
query = list('status' = 'pending'),
as_data_frame = TRUE)
## query metadata
Q <- bfabricShiny::read(login, webservicepassword,
endpoint = 'resource',
query = list('workunitid' = 163763))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.