add_auth_to_spec: add_auth_to_spec

View source: R/auth_filter.R

add_auth_to_specR 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.


polished documentation built on Feb. 16, 2023, 8:02 p.m.