Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Fyb3roptik/swaggomnia

Command line tool for exporting from Insomnia and importing to Swagger
https://github.com/Fyb3roptik/swaggomnia

hacktoberfest

Last synced: about 2 months ago
JSON representation

Command line tool for exporting from Insomnia and importing to Swagger

Awesome Lists containing this project

README

        






![Swaggomnia Build](https://github.com/Fyb3roptik/swaggomnia/workflows/Swaggomnia%20Build/badge.svg)

## Description

THIS IS A DEAD REPO NOW. Insomnia should now support this internally.

Generate Swagger Documentation from Insomnia REST Client.


*This is a fork of [swaggymnia](https://github.com/mlabouardy/swaggymnia) which is now dead.*

## Support
[![Swaggomnia chat](https://badges.gitter.im/swaggomnia/gitter.png)](https://gitter.im/swaggomnia/community)

## Changelog

`2.0.1`
* Updated Logo

`2.0`
* Open API 3 support
* Insomnia v4 support
* New Config Format

## How to use it

See usage with:

```
$ swaggomnia --help
```

Generate Swagger documentation:

```
$ swaggomnia generate -insomnia INSOMNIA_EXPORTED_FILE -config CONFIG_FILE -output FORMAT
```

| Option | Description |
| ------ | ----------- |
| -insomnia | Insomnia exported file |
| -config | API Global Configuration file (see [Configuration Format](#configuration-format))|
| -output | Insomnia output format (json or yaml, default json) |

## Example

Let's convert the following Insomnia API documentation to Swagger:



Issue the following command:

```
$ swaggomnia generate -i examples/watchnow.json -c examples/config.json -o json
```



## Configuration Format

```
{
"title" : "API Name",
"version" : "API version",
"basePath" : "https://api.domain.com/v1",
"description" : "API description"
}
```

## Maintainers
- Nick Wallace - [email protected] - New Author

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details