add_auth_to_spec | R Documentation |
Add authentication to the openapi plumber spec so that you can use the swagger
documentation with the auth_filter()
.
add_auth_to_spec(method = c("basic", "cookie"))
method |
the authentication method(s) |
This minimal API example https://github.com/Tychobra/polished_example_apps/blob/master/11_plumber/api/00_start.R shows how you can add this function to your API.
a function to update the openapi spec.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.