Skip to content

metalrex100/swaghtml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swaghtml

Overview

Swaghtml generates html file with Swagger UI from swagger specification.

Supported swagger specification formats:

  • json
  • yaml

Getting started

Download swaghtml by using:

$ go get github.com/metalrex100/swaghtml

Usage

Run:

swaghtml gen

By default swaghtml will search file with name swagger.json in your current directory and will output data to file with name swagger.html.

You can specify paths to input and output files with --input (-i) and --output (-o) flags:

swaghtml gen -i path_to_input_file -o path_to_output_file

swaghtml cli

$ swaghtml gen -h
Generate html file from json/yaml spec.

Usage:
  swaghtml gen [flags]

Flags:
  -h, --help            help for gen
  -i, --input string    Path to input file with swagger spec. Can be json or yaml. (default "swagger.json")
  -o, --output string   Path to output html file. (default "swagger.html")

About

Automatically generate html file with Swagger UI from swagger json/yaml specification.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages