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
}

Try the plumber package in your browser

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

plumber documentation built on Sept. 7, 2022, 1:05 a.m.