get_api | R Documentation |
Create API object from Swagger specification
get_api(url, config = NULL, ext)
url |
API URL or file (can be json or yaml format) |
config |
httr::config() curl options. |
ext |
the file extension of the API file (either 'yaml' or 'json'). By default, it is obtained from the URL with 'tools::file_ext' and should be provided when the file URL is missing an extension. |
API object
See also get_operations
and get_schemas
## Not run:
# create operation and schema functions
api_url <- "http://petstore.swagger.io/v2/swagger.json"
api <- get_api(api_url)
operations <- get_operations(api)
schemas <- get_schemas(api)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.