Open schloerke opened 4 years ago
Thanks! Please ping me if you need some user feedback in all the PRs/issues you are working now. I'd be happy to help! 😄
maybe pr$setApiGlobals(info, host, tags, ...)
to modify private$globalsSettings
globals and the other one are already availabe through PlumberEndpoint but undocumented.
Would that be sufficient?
pr() %>%
pr_set_api_spec(function(spec) {
spec$info = list(
description = "API Description G",
title = "API Title XXX",
version = "5.5.5")
spec
}) %>%
pr_run()
https://community.rstudio.com/t/adding-endpoint-documentation-from-programmatic-usage-in-plumber/71271
defaultGlobals$info
be aoptions(plumber....)
setting? (Seems odd)pr$
method? (Seems better and would allow differentpr
objects to define their own.)