Skip to content

Tabcorp/swagger-to-md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-swagger-to-md

npm version build status test coverage downloads js-standard-style

Transform swagger to markdown. Output is sorted alphabetically.

Usage

Usage: swagger-to-md <swagger>

Options:
  -h, --help        Output usage information
  -v, --version     Output version number
  -y, --yaml        Use swagger YAML instead of JSON

Examples:
  $ swagger-to-md spec.json      # Transform swagger to markdown
  $ swagger-to-md < spec.json    # Transform swagger to markdown
  $ swagger-to-md -y spec.yaml   # Transform swagger yaml to markdown

Docs: https://github.com/TabDigital/node-swagger-to-md
Bugs: https://github.com/TabDigital/node-swagger-to-md/issues

Example output

path method summary
/foo/bar GET get all bars in the area
/bin/baz PUT add a new baz to the region

Installation

$ npm install swagger-to-md

See Also

License

MIT