Produces the content for a index.html file that will attempt
to access a provided API path.
swagger_spec( api_path = "\"http://petstore.swagger.io/v2/swagger.json\"", version = "3" )
| api_path | Path to paste into the an OpenAPI specification file  | 
    
|---|---|
| version | Major version number to be used for Swagger UI.  Currently version   | 
    
large string containing the contents of swagger_index() with
  the appropriate specification path changed to the api_path value.
if (interactive()) { swagger_spec("https://developer.uspto.gov/ibd-api/swagger.json") }