Retrieves the path to the swagger index file.

swagger_index(version = "3")

Arguments

version

Major version number to be used for Swagger UI. Currently version "3" is compatible with OpenAPI spec 2.0, 3.0.

Examples


if (interactive()) {
  browseURL(swagger_index())
} else {
  print(paste("You can use swagger under: ", swagger_index()))
}
#> [1] "You can use swagger under:  /home/runner/work/_temp/Library/swagger/dist3/index.html"