Title / Description
Code Path swaggerFile = Paths.get("work/input/spec.yaml"); Path outputFile = Paths.get("work/temp/api"); Swagger2MarkupConfig config = new Swagger2MarkupConfigBuilder() .withMarkupLanguage(MarkupLanguage.ASCIIDOC) .withOutputLanguage(Language.EN) .withPathsGroupedBy(GroupBy.TAGS) .withGeneratedExamples() .withInterDocumentCrossReferences() .build(); Swagger2MarkupConverter converter = Swagger2MarkupConverter.from(swaggerFile) .withConfig(config) .build(); .toFile(outputFile);
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code