Learn R Programming

polished (version 0.8.1)

add_auth_to_spec: add_auth_to_spec

Description

Add authentication to the openapi plumber spec so that you can use the swagger documentation with the auth_filter().

Usage

add_auth_to_spec(method = c("basic", "cookie"))

Value

a function to update the openapi spec.

Arguments

method

the authentication method(s)

Details

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.