Plumber — Building an API

Plumber is a package which makes it possible to expose R functions as API endpoints. This makes building an API simple and fun.

  • What is a REST API?
  • A Quick API
    • Function decoration
    • Input and output
    • Swagger
  • Input
    • Types of endpoints (mostly GET and POST but also PUT, DELETE and HEAD)
    • Filters
    • Dynamic routing
    • Parameters
    • The request object
    • JSON input
  • Output
    • The response object
    • Types of output (mostly JSON but also HTML, JPG, PNG and PDF)
    • Serving static files
    • Dealing with Errors
  • Documentation
  • Security
  • Deploying an API
    • DigitalOcean and AWS
    • Docker

Book now!

Training Philosophy

Our training emphasises practical skills. So, although you'll be learning concepts and theory, you'll see how everything is applied in the real world. We will work through examples and exercises based on real datasets.


All you'll need is a computer with a browser and a decent internet connection. We'll be using an online development environment. This means that you can focus on learning and not on solving technical problems.

Of course, we are happy to help you get your local environment set up too! You can start by following these instructions.


The training package includes access to
  • our online development environment and
  • detailed course material (slides and scripts).

Return to our list of courses.