Lay the infrastructure for an additional set of services. That includes
adding a unit test, adding an endpoint, and extending the entrypointy.
Note: add_service adds a service to pre-existing plumber
microservice which you could deploy by calling use_microservice.
How It Works
Given a path (.) to a folder and a name (repository)
When add_service is called
Then the function creates the following files:
tests/testthat/test-endpoint-plumber-repository.R
inst/endpoints/plumber-repository.R
And updates the following files:
inst/entrypoints/plumber-foreground.R
When to Use
In scenarios where services are thematically linked to each other.
Examples for themes that should be mounted separately:
<U+00E2><U+20AC><U+02DC>forecasting<U+00E2><U+20AC><U+2122> and <U+00E2><U+20AC><U+02DC>anomaly detection<U+00E2><U+20AC><U+2122>
<U+00E2><U+20AC><U+02DC>user<U+00E2><U+20AC><U+2122> and <U+00E2><U+20AC><U+02DC>business<U+00E2><U+20AC><U+2122>