Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 459 Bytes

File metadata and controls

24 lines (18 loc) · 459 Bytes

Plumber Explanation Script

James Blair Wed Sep 19 17:12:43 2018

Plumber Demo

This PoC uses rmarkdown::render() to create a markdown file documenting this plumber API.

library(plumber)

#* @apiTitle Plumber Example API

#* Echo back the input
#* @param msg The message to echo
#* @get /echo
function(msg = "") {
  list(msg = paste0("The message is: '", msg, "'"))
}

Create an endpoint that echos back the message provided.