tests/testthat/files/legacy.R

# Causes arguments to be evaluated for matching purposes
#* @post /body
function(x = 1) {
  x
}

#* @post /postBody
function(req) {
  req$postBody
}
rstudio/plumber documentation built on April 12, 2025, 7:33 p.m.