Retrieves the path to swagger resources.

swagger_path(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_path())
} else {
  print(paste("You can explore swagger resources under: ", swagger_path()))
}
#> [1] "You can explore swagger resources under:  /home/runner/work/_temp/Library/swagger/dist3"