
Create a route for serving OpenAPI documentation of your server
Source:R/openapi_route.R
openapi_route.RdThis route facilitates serving the OpenAPI specs for your server, using either RapiDoc, Redoc or Swagger as a UI for it. This function does not help you describe your API - you have to provide the description for it yourself.
Usage
openapi_route(
spec,
root = "__docs__",
ui = c("rapidoc", "redoc", "swagger"),
...
)Value
A Route object
See also
Other Route constructors:
asset_route(),
resource_route(),
shared_secret_route(),
sizelimit_route()