Create a ‘plumber’ file from an ‘OpenAPI’ document defining an ‘API’. The ‘plumber’ file will have all the information to generate a mock server for that ‘API’.
You can install the development version of mockplumber from GitHub with:
# install.packages("remotes")
# remotes::install_github("jonthegeek/mockplumber")
install.packages("mockplumber", repos = c('https://jonthegeek.r-universe.dev', 'https://cloud.r-project.org'))
This is the beginning of an idea for a package. You will use it with something like mockplumber::mock(“https://api.apis.guru/v2/openapi.yaml”).
Please note that the mockplumber project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.