R/get_webservice.R

Defines functions get_webservice

Documented in get_webservice

#' Get Web-service details
#'
#' Retrieve details about the Metabolights RESTful WebService
#'
#' @return a list of the MTBLS webservice information
#' @export
#' @examples
#' get_webservice()

get_webservice <- function()
{
  webservice_info <- httr::GET(getOption('BASE_URL')) %>% httr::content('parsed')
  return(webservice_info)
}

Try the metabolighteR package in your browser

Any scripts or data that you put into this service are public.

metabolighteR documentation built on Feb. 10, 2022, 1:09 a.m.