Generate Swagger Documentation from Insomnia REST Client
Below are the available downloads for the latest version of Swaggymnia (1.0.0-beta). Please download the proper package for your operating system and architecture.
wget https://s3.amazonaws.com/swaggymnia/1.0.0-beta/linux/swaggymnia
wget https://s3.amazonaws.com/swaggymnia/1.0.0-beta/windows/swaggymnia
wget https://s3.amazonaws.com/swaggymnia/1.0.0-beta/osx/swaggymnia
wget https://s3.amazonaws.com/swaggymnia/1.0.0-beta/freebsd/swaggymnia
wget https://s3.amazonaws.com/swaggymnia/1.0.0-beta/openbsd/swaggymnia
See usage with:
$ swaggymnia --help
Generate Swagger documentation:
$ swaggymnia generate -insomnia INSOMNIA_EXPORTED_FILE -config CONFIG_FILE -output FORMAT
Option | Description |
---|---|
-insomnia | Insomnia exported file |
-config | API Global Configuration file (see Configuration Format) |
-output | Insomnia output format (json or yaml, default json) |
Let's convert the following Insomnia API documentation to Swagger:
Issue the following command:
$ swaggymnia generate -i examples/watchnow.json -c examples/config.json -o json
{
"title" : "API Name",
"version" : "API version",
"host" : "API URL",
"basePath" : "Base URL",
"schemes" : "HTTP protocol",
"description" : "API description"
}
This project is licensed under the MIT License - see the LICENSE file for details