R/request_dtr.R

Defines functions request_dtr

#' Request dtr
#' @description
#' Request an API of a datatype registry to get information about a schema
#' @param route A path for requesting a dtr API
#' @return Requested information about the schema
#' @noRd
#'
request_dtr <- function(route) {
  req <- httr2::request(route)
  resp <- httr2::req_perform(req)
  info <- httr2::resp_body_json(resp)
  return(info)
}

Try the dtreg package in your browser

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

dtreg documentation built on April 12, 2025, 2:05 a.m.