add_auth_to_spec {polished}R Documentation

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"))

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.

Value

a function to update the openapi spec.


[Package polished version 0.8.1 Index]