Plumber API

Use this pattern to test that a Plumber API responds to requests as expected. Launch API in a background process with mirai and make requests with httr2.

When to use this pattern?

Use it for testing a Plumber API you own.

How to use this pattern?

  1. Manage the API-related setup in a setup-api.R file.
  2. Use mirai to not block the testing process.
  3. Use httr2 to make serial requests to the API.

plumber

DESCRIPTION
plumber.R
tests
testthat
setup-api.R
test-plumber.R
Select a file to view its content