Skip to content

Grant-Nelson/drOpenAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dr OpenAPI

YAML & JSON to Markdown with Mermaid

Need a MD?

Dr OpenAPI is a simple markdown generator for an OpenAPI bundle.

What does Dr OpenAPI do?

Dr OpenAPI reads the JSON or YAML bundle file for an OpenAPI v3 definition. Then it writes a markdown file listing all the paths in the definition. For each path the result model is drawn using a mermaid class diagram. The paths must have a application/json media type to be shown.

Setup

Run from this folder

  • Generate MD with go run main.go -i <input> -o <output>
  • For help run go run main.go -h

Installing to use anywhere

  • Install with go install
  • Generate MD with DrOpenAPI -i <input> -o <output>
  • For help run DrOpenAPI -h

Customize Markdown

  • To change the title on the MD file, add a -t <title> argument. For example -t "Title for MD file"

About

A simple markdown generator for an OpenAPI bundle

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages