Skip to content

Instantly share code, notes, and snippets.

@dmunch
Created May 8, 2017 16:20
Show Gist options
  • Save dmunch/e4ab75abdf2302a22273afe185f72329 to your computer and use it in GitHub Desktop.
Save dmunch/e4ab75abdf2302a22273afe185f72329 to your computer and use it in GitHub Desktop.
if [ ! -f swagger2markup-cli.jar ]; then
curl -H "Accept: application/zip" http://central.maven.org/maven2/io/github/robwin/swagger2markup-cli/0.9.2/swagger2markup-cli-0.9.2.jar > swagger2markup-cli.jar
fi
mkdir -p doc
java -jar swagger2markup-cli.jar generate -i wwwroot/REST-Spec.yml -o doc -l ASCIIDOC
cat doc/overview.adoc doc/definitions.adoc doc/paths.adoc > doc/all.adoc
asciidoctor-pdf doc/all.adoc -o Besichtigung20-API.pdf
#need to install asciidoctor-pdf first.
#On Mac it's easy:
#gem install asciidoctor-pdf --pre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment