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?
- Manage the API-related setup in a
setup-api.R
file. - Use
mirai
to not block the testing process. - Use
httr2
to make serial requests to the API.