/YmlToSwaggerHtml

📖 Generate beautiful html files with a swagger template using YAML/YML files. 🚀🚀

Primary LanguagePythonApache License 2.0Apache-2.0

SWAGGER GENERATOR HTML FILES

This Repo creates beautiful html swagger files, using YAML files and validates them.

Getting started

Make sure you have installed

Installation

To install the libraries, run in your terminal.

make install

This will setup your environment to add the 2 libraries this repo requires.

Adding your YAML docs

In order to validate your files add your docs to the directory docs/openapi.

Validating your yaml files

To validate your files first add them in the directory openapi, then run in your terminal:

make swagger-validation

Creating your html beautiful swagger static docs

In order to connect your files between each one, change the file template in scripts/templates/swagger_template, you will find in the line 36 that there is a "select" html element, add all your files there, as options "name_of_your_file" its not necessary to add the sufix html.

Once you finish this step just run in your terminal

make swagger-static

Credits to

This repo was built using the script shown below: